diff options
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r-- | app/models/changeset.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 499191070..13213f3ab 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -242,8 +242,11 @@ class Changeset < ActiveRecord::Base end Redmine::Hook.call_hook(:model_changeset_scan_commit_for_issue_ids_pre_issue_update, { :changeset => self, :issue => issue, :action => action }) - unless issue.save - logger.warn("Issue ##{issue.id} could not be saved by changeset #{id}: #{issue.errors.full_messages}") if logger + + if issue.changes.any? + unless issue.save + logger.warn("Issue ##{issue.id} could not be saved by changeset #{id}: #{issue.errors.full_messages}") if logger + end end issue end |