@@ -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 |
General Comments 0
You need to be logged in to leave comments.
Login now