edit form fixed
This commit is contained in:
parent
f01785443e
commit
e2529b174f
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
<div class="form-actions">
|
||||
<%= f.hidden_field :page_id, :value=>@page.id.to_s %>
|
||||
<%= f.hidden_field :version, :value=>(@page.page_contexts.last.version + 1)%>
|
||||
<%= f.hidden_field :version, :value=>((@page.page_contexts.last.version + 1) rescue 1)%>
|
||||
<%= f.submit t("page_content.save"), :class=> "btn btn-primary bt-form-save" %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue