Commit aca6ed13 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Fixed: issue attachments are saved even if the issue has been updated by another user (#3846).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2875 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8e322219
......@@ -211,6 +211,8 @@ class IssuesController < ApplicationController
rescue ActiveRecord::StaleObjectError
# Optimistic locking exception
flash.now[:error] = l(:notice_locking_conflict)
# Remove the previously added attachments if issue was not updated
attachments.each(&:destroy)
end
def reply
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment