Skip to content

Commit d208cb6

Browse files
committed
fix source indent of app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20083 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 4bf1745 commit d208cb6

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/models/issue.rb

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,10 +1191,10 @@ def self.load_visible_relations(issues, user=User.current)
11911191
# Returns a scope of the given issues and their descendants
11921192
def self.self_and_descendants(issues)
11931193
Issue.joins(
1194-
"JOIN #{Issue.table_name} ancestors" +
1195-
" ON ancestors.root_id = #{Issue.table_name}.root_id" +
1196-
" AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
1197-
).
1194+
"JOIN #{Issue.table_name} ancestors" +
1195+
" ON ancestors.root_id = #{Issue.table_name}.root_id" +
1196+
" AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
1197+
).
11981198
where(:ancestors => {:id => issues.map(&:id)})
11991199
end
12001200

@@ -1417,10 +1417,11 @@ def self.update_versions_from_sharing_change(version)
14171417
def self.update_versions_from_hierarchy_change(project)
14181418
moved_project_ids = project.self_and_descendants.reload.pluck(:id)
14191419
# Update issues of the moved projects and issues assigned to a version of a moved project
1420-
Issue.update_versions(
1421-
["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
1422-
moved_project_ids, moved_project_ids]
1423-
)
1420+
Issue.
1421+
update_versions(
1422+
["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
1423+
moved_project_ids, moved_project_ids]
1424+
)
14241425
end
14251426

14261427
def parent_issue_id=(arg)

0 commit comments

Comments
 (0)