Revision 1162
Added by Jean-Philippe Lang over 17 years ago
trunk/app/models/issue.rb | ||
---|---|---|
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 | 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 |
trunk/app/models/mailer.rb | ||
---|---|---|
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) |
Also available in: Unified diff
Fixed: auto closing of duplicates doesn't work.