From: Jean-Philippe Lang Date: Sat, 1 Mar 2008 09:00:02 +0000 (+0000) Subject: Fixed: fetch_changesets fails on commit comments that close 2 duplicates issues. X-Git-Tag: 0.7.0-RC1~105 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ee55562ffb84be384578a0145b896f4734fa38b;p=redmine.git Fixed: fetch_changesets fails on commit comments that close 2 duplicates issues. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1183 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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