Log errors when bulk edit/copy fails (#13440).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11611 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
83d7761998
commit
1d48ab201b
app/controllers
@ -272,6 +272,7 @@ class IssuesController < ApplicationController
|
|||||||
if issue.save
|
if issue.save
|
||||||
moved_issues << issue
|
moved_issues << issue
|
||||||
else
|
else
|
||||||
|
logger.info "issue could not be updated or copied: #{issue.errors.full_messages}" if logger && logger.info
|
||||||
# Keep unsaved issue ids to display them in flash error
|
# Keep unsaved issue ids to display them in flash error
|
||||||
unsaved_issue_ids << issue.id
|
unsaved_issue_ids << issue.id
|
||||||
end
|
end
|
||||||
|
@ -198,6 +198,7 @@ class TimelogController < ApplicationController
|
|||||||
time_entry.safe_attributes = attributes
|
time_entry.safe_attributes = attributes
|
||||||
call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
|
call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
|
||||||
unless time_entry.save
|
unless time_entry.save
|
||||||
|
logger.info "time entry could not be updated: #{time_entry.errors.full_messages}" if logger && logger.info
|
||||||
# Keep unsaved time_entry ids to display them in flash error
|
# Keep unsaved time_entry ids to display them in flash error
|
||||||
unsaved_time_entry_ids << time_entry.id
|
unsaved_time_entry_ids << time_entry.id
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user