summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-04-08 11:22:17 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-04-08 11:22:17 +0000
commit20496b516fa02079d459ed06ba4f13105f3be710 (patch)
tree421c3100c72c89e5894256df64139bec0b3f5afa
parent2a1a02f976c4e62bc59422041e4e5865a350f87b (diff)
downloadredmine-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.rb5
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)