diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:22:17 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-04-08 11:22:17 +0000 |
commit | 20496b516fa02079d459ed06ba4f13105f3be710 (patch) | |
tree | 421c3100c72c89e5894256df64139bec0b3f5afa | |
parent | 2a1a02f976c4e62bc59422041e4e5865a350f87b (diff) | |
download | redmine-20496b516fa02079d459ed06ba4f13105f3be710.tar.gz redmine-20496b516fa02079d459ed06ba4f13105f3be710.zip |
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
-rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 9162b498f..b20a73099 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1107,7 +1107,10 @@ class Issue < ActiveRecord::Base def self.update_versions_from_hierarchy_change(project) 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 - 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 def parent_issue_id=(arg) |