##// END OF EJS Templates
Fixes destroying attachments if the update fails. (r2875 r3523)...
Eric Davis -
r3412:f6d8752e442c
parent child
Show More
@@ -213,7 +213,7 class IssuesController < ApplicationController
213 # Optimistic locking exception
213 # Optimistic locking exception
214 flash.now[:error] = l(:notice_locking_conflict)
214 flash.now[:error] = l(:notice_locking_conflict)
215 # Remove the previously added attachments if issue was not updated
215 # Remove the previously added attachments if issue was not updated
216 attachments.each(&:destroy)
216 attachments[:files].each(&:destroy) if attachments[:files]
217 end
217 end
218
218
219 def reply
219 def reply
General Comments 0
You need to be logged in to leave comments. Login now