From e8729feba7436976436fe74ca3adfd9640fccad4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 28 Mar 2010 12:57:39 +0000 Subject: [PATCH] Slight optimization in issue tree rendering. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3620 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 18d2af317..206bafb26 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -25,7 +25,7 @@ module IssuesHelper ancestors.pop end yield issue, ancestors.size - ancestors << issue + ancestors << issue unless issue.leaf? end end