Defect #5803 » issue.rb.diff
app/models/issue.rb (working copy) | ||
---|---|---|
68 | 68 |
:conditions => ["#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"] |
69 | 69 | |
70 | 70 |
before_create :default_assign |
71 |
before_save :reschedule_following_issues, :close_duplicates, :update_done_ratio_from_issue_status
|
|
72 |
after_save :update_nested_set_attributes, :update_parent_attributes, :create_journal |
|
71 |
before_save :close_duplicates, :update_done_ratio_from_issue_status |
|
72 |
after_save :reschedule_following_issues, :update_nested_set_attributes, :update_parent_attributes, :create_journal
|
|
73 | 73 |
after_destroy :destroy_children |
74 | 74 |
after_destroy :update_parent_attributes |
75 | 75 |
|
... | ... | |
752 | 752 | |
753 | 753 |
# Updates start/due dates of following issues |
754 | 754 |
def reschedule_following_issues |
755 |
if start_date_changed? || due_date_changed? |
|
756 |
relations_from.each do |relation| |
|
757 |
relation.set_issue_to_dates |
|
758 |
end |
|
755 |
relations_from.each do |relation| |
|
756 |
relation.set_issue_to_dates |
|
759 | 757 |
end |
760 | 758 |
end |
761 | 759 |