summaryrefslogtreecommitdiffstats
path: root/app/helpers/issues_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-28 12:57:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-03-28 12:57:39 +0000
commite8729feba7436976436fe74ca3adfd9640fccad4 (patch)
treef21748720a8ad39f0071fb315cce17fef73239a8 /app/helpers/issues_helper.rb
parent4a51f10074911de6ccb08758e6a007629ae78b30 (diff)
downloadredmine-e8729feba7436976436fe74ca3adfd9640fccad4.tar.gz
redmine-e8729feba7436976436fe74ca3adfd9640fccad4.zip
Slight optimization in issue tree rendering.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3620 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/issues_helper.rb')
-rw-r--r--app/helpers/issues_helper.rb2
1 files changed, 1 insertions, 1 deletions
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