在本页面重复修改的时候,由于edit页面没有更新,导致issue更新触发乐观锁。lock_version比数据库记录存在的lock_version更低,所以回滚。

This commit is contained in:
lizanle 2015-12-15 23:01:54 +08:00
parent 68aceaa7df
commit 8d1003770a
1 changed files with 1 additions and 0 deletions

View File

@ -1,4 +1,5 @@
$("#issue_detail").html('<%= escape_javascript(render :partial => 'issues/detail') %>')
$("#issue_edit").html('<%= escape_javascript(render :partial => 'issues/edit') %>')
$("#issue_detail").show();
$("#issue_edit").hide();
$("#reply_div_<%= @issue.id %>").html("<%= escape_javascript(render :partial => 'issues/issue_replies', :locals => {:issue => @issue,:replies_all_i=>0}) %>");