You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2013/03/06 17:10:01 UTC

[3/3] git commit: [#5861] ticket:284 fixed error in grouped_navbar_entries

Updated Branches:
  refs/heads/master dbc9c195e -> 31571da93


[#5861] ticket:284 fixed error in grouped_navbar_entries


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/31571da9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/31571da9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/31571da9

Branch: refs/heads/master
Commit: 31571da93d9add9067388448b6fdb11f6858413c
Parents: 0d4bdf2
Author: Yuriy Arhipov <yu...@yandex.ru>
Authored: Wed Mar 6 11:53:08 2013 +0400
Committer: Dave Brondsema <db...@geek.net>
Committed: Wed Mar 6 15:33:20 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/project.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/31571da9/Allura/allura/model/project.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index f1535ed..d894ae0 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -474,8 +474,8 @@ class Project(MappedClass, ActivityNode, ActivityObject):
                 continue
             tool_name = e.tool_name.lower()
             if counts.get(tool_name, 1) <= grouping_threshold:
-                # don't need grouping, so just add it by label
-                grouped_nav[e.label] = e
+                # don't need grouping, so just add it directly
+                grouped_nav[id(e)] = e
             else:
                 # tool of a type we don't have in the navbar yet
                 if tool_name not in grouped_nav: