From 6dc24de71c34e9f80ed86a82242d4b1707c500b2 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 14:09:50 +0000 Subject: [PATCH] code layout clean up app/helpers/issues_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19011 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 30d17fda9..1eca83789 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -94,7 +94,10 @@ module IssuesHelper def render_descendants_tree(issue) manage_relations = User.current.allowed_to?(:manage_subtasks, issue.project) s = +'' - issue_list(issue.descendants.visible.preload(:status, :priority, :tracker, :assigned_to).sort_by(&:lft)) do |child, level| + issue_list( + issue.descendants.visible. + preload(:status, :priority, :tracker, + :assigned_to).sort_by(&:lft)) do |child, level| css = +"issue issue-#{child.id} hascontextmenu #{child.css_classes}" css << " idnt idnt-#{level}" if level > 0 buttons = -- 2.39.5