mirror of
https://github.com/redmine/redmine.git
synced 2025-12-22 16:30:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user