summaryrefslogtreecommitdiffstats
path: root/app/models/changeset.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-01 09:00:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-03-01 09:00:02 +0000
commit7ee55562ffb84be384578a0145b896f4734fa38b (patch)
tree288b7e182751559fff0d99e32c0f24095f75e922 /app/models/changeset.rb
parentc01c64e9783dc361d98ca8dc37d2b3a661ae1945 (diff)
downloadredmine-7ee55562ffb84be384578a0145b896f4734fa38b.tar.gz
redmine-7ee55562ffb84be384578a0145b896f4734fa38b.zip
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
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r--app/models/changeset.rb2
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