Skip to content

Commit

Permalink
Fixed: issue attachments are saved even if the issue has been updated…
Browse files Browse the repository at this point in the history
… by another user (#3846).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2875 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Sep 12, 2009
1 parent 8e32221 commit aca6ed1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/issues_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ def edit
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
Expand Down

0 comments on commit aca6ed1

Please sign in to comment.