##// END OF EJS Templates
Fixed: auto closing of duplicates doesn't work....
Jean-Philippe Lang -
r1148:652dc1a73af8
parent child
Show More
@@ -142,6 +142,9 class Issue < ActiveRecord::Base
142 142 end
143 143
144 144 def after_save
145 # Reload is needed in order to get the right status
146 reload
147
145 148 # Update start/due dates of following issues
146 149 relations_from.each(&:set_issue_to_dates)
147 150
@@ -165,6 +168,7 class Issue < ActiveRecord::Base
165 168 def init_journal(user, notes = "")
166 169 @current_journal ||= Journal.new(:journalized => self, :user => user, :notes => notes)
167 170 @issue_before_change = self.clone
171 @issue_before_change.status = self.status
168 172 @custom_values_before_change = {}
169 173 self.custom_values.each {|c| @custom_values_before_change.store c.custom_field_id, c.value }
170 174 @current_journal
@@ -31,7 +31,6 class Mailer < ActionMailer::Base
31 31
32 32 def issue_edit(journal)
33 33 issue = journal.journalized
34 issue.reload
35 34 recipients issue.recipients
36 35 # Watchers in cc
37 36 cc(issue.watcher_recipients - @recipients)
General Comments 0
You need to be logged in to leave comments. Login now