##// END OF EJS Templates
Log errors when bulk edit/copy fails (#13440)....
Jean-Philippe Lang -
r11381:1d48ab201b36
parent child
Show More
@@ -272,6 +272,7 class IssuesController < ApplicationController
272 if issue.save
272 if issue.save
273 moved_issues << issue
273 moved_issues << issue
274 else
274 else
275 logger.info "issue could not be updated or copied: #{issue.errors.full_messages}" if logger && logger.info
275 # Keep unsaved issue ids to display them in flash error
276 # Keep unsaved issue ids to display them in flash error
276 unsaved_issue_ids << issue.id
277 unsaved_issue_ids << issue.id
277 end
278 end
@@ -198,6 +198,7 class TimelogController < ApplicationController
198 time_entry.safe_attributes = attributes
198 time_entry.safe_attributes = attributes
199 call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
199 call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
200 unless time_entry.save
200 unless time_entry.save
201 logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info
201 # Keep unsaved time_entry ids to display them in flash error
202 # Keep unsaved time_entry ids to display them in flash error
202 unsaved_time_entry_ids << time_entry.id
203 unsaved_time_entry_ids << time_entry.id
203 end
204 end
General Comments 0
You need to be logged in to leave comments. Login now