incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r584829 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java
Date Mon, 15 Oct 2007 17:26:36 GMT
Author: toback
Date: Mon Oct 15 10:26:35 2007
New Revision: 584829

URL: http://svn.apache.org/viewvc?rev=584829&view=rev
Log:
Fix to allow multiple items with the same name to show up in the sorted lists in the gui.

Re: https://issues.apache.org/jira/browse/LOKAHI-3

Patch by Jeff Feist.

Modified:
    incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java

Modified: incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java?rev=584829&r1=584828&r2=584829&view=diff
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java
(original)
+++ incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/collection/TMCCollectionImpl.java
Mon Oct 15 10:26:35 2007
@@ -194,7 +194,7 @@
   public TreeMap<String, ItemType> orderByName() {
     TreeMap<String, ItemType> tm = new TreeMap<String, ItemType>();
     for (final ItemType dao : collection.values()) {
-      tm.put(dao.getName(), dao);
+      tm.put(dao.getName() + dao.getPk(), dao);
     }
     return tm;
   }
@@ -228,6 +228,7 @@
   }
 
 }
+
 
 
 



Mime
View raw message