summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-12 19:43:46 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-03-12 19:43:46 +0000
commit1d48ab201b36fa759591c8fa9f18e5b46a50b714 (patch)
tree17407535fa215ce21b9e3998e989c49ccc20120d /app/controllers/timelog_controller.rb
parent83d77619982694ed0eada9eacb04897be5ce18c2 (diff)
downloadredmine-1d48ab201b36fa759591c8fa9f18e5b46a50b714.tar.gz
redmine-1d48ab201b36fa759591c8fa9f18e5b46a50b714.zip
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
Diffstat (limited to 'app/controllers/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 92210fff5..64946a3ad 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -198,6 +198,7 @@ class TimelogController < ApplicationController
time_entry.safe_attributes = attributes
call_hook(:controller_time_entries_bulk_edit_before_save, { :params => params, :time_entry => time_entry })
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
unsaved_time_entry_ids << time_entry.id
end