Fixed: issue optimistic locking broken by r3308 (#5280).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3663 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-04-11 16:27:37 +00:00
parent 2674c6116c
commit 43e5bb75d2
4 changed files with 38 additions and 12 deletions

View File

@@ -212,12 +212,6 @@ class IssuesController < ApplicationController
format.xml { render :xml => @issue.errors, :status => :unprocessable_entity }
end
end
rescue ActiveRecord::StaleObjectError
# Optimistic locking exception
flash.now[:error] = l(:notice_locking_conflict)
# Remove the previously added attachments if issue was not updated
attachments[:files].each(&:destroy) if attachments[:files]
end
def reply