@@ -1107,7 +1107,10 class Issue < ActiveRecord::Base | |||
|
1107 | 1107 | def self.update_versions_from_hierarchy_change(project) |
|
1108 | 1108 | moved_project_ids = project.self_and_descendants.reload.collect(&:id) |
|
1109 | 1109 | # Update issues of the moved projects and issues assigned to a version of a moved project |
|
1110 | Issue.update_versions(["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)", moved_project_ids, moved_project_ids]) | |
|
1110 | Issue.update_versions( | |
|
1111 | ["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)", | |
|
1112 | moved_project_ids, moved_project_ids] | |
|
1113 | ) | |
|
1111 | 1114 | end |
|
1112 | 1115 | |
|
1113 | 1116 | def parent_issue_id=(arg) |
General Comments 0
You need to be logged in to leave comments.
Login now