code format clean up Issue#update_versions_from_hierarchy_change
git-svn-id: http://svn.redmine.org/redmine/trunk@13081 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2a1a02f976
commit
20496b516f
|
@ -1107,7 +1107,10 @@ class Issue < ActiveRecord::Base
|
||||||
def self.update_versions_from_hierarchy_change(project)
|
def self.update_versions_from_hierarchy_change(project)
|
||||||
moved_project_ids = project.self_and_descendants.reload.collect(&:id)
|
moved_project_ids = project.self_and_descendants.reload.collect(&:id)
|
||||||
# Update issues of the moved projects and issues assigned to a version of a moved project
|
# Update issues of the moved projects and issues assigned to a version of a moved project
|
||||||
Issue.update_versions(["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)", moved_project_ids, moved_project_ids])
|
Issue.update_versions(
|
||||||
|
["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
|
||||||
|
moved_project_ids, moved_project_ids]
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
def parent_issue_id=(arg)
|
def parent_issue_id=(arg)
|
||||||
|
|
Loading…
Reference in New Issue