]> source.dussan.org Git - redmine.git/commitdiff
Fixed: fetch_changesets fails on commit comments that close 2 duplicates issues.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Mar 2008 09:00:02 +0000 (09:00 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Mar 2008 09:00:02 +0000 (09:00 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1183 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/changeset.rb

index 3703ab927787793740a2bf0bea78ab4e4c651075..6bd15b1581bc133658be66d00f56cbf8397dd4a1 100644 (file)
@@ -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