Fixed: auto closing of duplicates doesn't work.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1162 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e5daf25618
commit
652dc1a73a
|
@ -142,6 +142,9 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_save
|
def after_save
|
||||||
|
# Reload is needed in order to get the right status
|
||||||
|
reload
|
||||||
|
|
||||||
# Update start/due dates of following issues
|
# Update start/due dates of following issues
|
||||||
relations_from.each(&:set_issue_to_dates)
|
relations_from.each(&:set_issue_to_dates)
|
||||||
|
|
||||||
|
@ -165,6 +168,7 @@ class Issue < ActiveRecord::Base
|
||||||
def init_journal(user, notes = "")
|
def init_journal(user, notes = "")
|
||||||
@current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
|
@current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
|
||||||
@issue_before_change = self.clone
|
@issue_before_change = self.clone
|
||||||
|
@issue_before_change.status = self.status
|
||||||
@custom_values_before_change = {}
|
@custom_values_before_change = {}
|
||||||
self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
|
self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
|
||||||
@current_journal
|
@current_journal
|
||||||
|
|
|
@ -31,7 +31,6 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
def issue_edit(journal)
|
def issue_edit(journal)
|
||||||
issue = journal.journalized
|
issue = journal.journalized
|
||||||
issue.reload
|
|
||||||
recipients issue.recipients
|
recipients issue.recipients
|
||||||
# Watchers in cc
|
# Watchers in cc
|
||||||
cc(issue.watcher_recipients - @recipients)
|
cc(issue.watcher_recipients - @recipients)
|
||||||
|
|
Loading…
Reference in New Issue