OSDN Git Service

Slight optimization in issue tree rendering.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Mar 2010 12:57:39 +0000 (12:57 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 28 Mar 2010 12:57:39 +0000 (12:57 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3620 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 18d2af3..206bafb 100644 (file)
@@ -25,7 +25,7 @@ module IssuesHelper
         ancestors.pop
       end
       yield issue, ancestors.size
-      ancestors << issue
+      ancestors << issue unless issue.leaf?
     end
   end