diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index e1faa9b..3f3966a 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -272,6 +272,7 @@ class IssuesController < ApplicationController if issue.save moved_issues << issue 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 unsaved_issue_ids << issue.id end diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb index 92210ff..64946a3 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