diff options
-rw-r--r-- | app/models/changeset.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 3703ab927..6bd15b158 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -80,6 +80,8 @@ class Changeset < ActiveRecord::Base # update status of issues logger.debug "Issues fixed by changeset #{self.revision}: #{issue_ids.join(', ')}." if logger && logger.debug? target_issues.each do |issue| + # the issue may have been updated by the closure of another one (eg. duplicate) + issue.reload # don't change the status is the issue is closed next if issue.status.is_closed? user = committer_user || User.anonymous |