Update of /var/cvs/src/org/mmbase/util
In directory james.mmbase.org:/tmp/cvs-serv17326

Modified Files:
      Tag: MMBase-1_8
        LocalizedEntryListFactory.java 
Log Message:
made it do also something with the third and later fields


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/util


Index: LocalizedEntryListFactory.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/util/LocalizedEntryListFactory.java,v
retrieving revision 1.39.2.3
retrieving revision 1.39.2.4
diff -u -b -r1.39.2.3 -r1.39.2.4
--- LocalizedEntryListFactory.java      18 Aug 2008 11:02:52 -0000      1.39.2.3
+++ LocalizedEntryListFactory.java      18 Aug 2008 14:12:27 -0000      1.39.2.4
@@ -38,7 +38,7 @@
  * partially by explicit values, though this is not recommended.
  *
  * @author Michiel Meeuwissen
- * @version $Id: LocalizedEntryListFactory.java,v 1.39.2.3 2008/08/18 11:02:52 
michiel Exp $
+ * @version $Id: LocalizedEntryListFactory.java,v 1.39.2.4 2008/08/18 14:12:27 
michiel Exp $
  * @since MMBase-1.8
  */
 public class LocalizedEntryListFactory implements Serializable, Cloneable {
@@ -331,9 +331,14 @@
                                                         return new 
Entry(next.getValue(alias),
                                                                          
next.getStringValue(alias));
                                                     } else {
-                                                        String alias2 = 
Queries.getFieldAlias((StepField) query.getFields().get(1));
+                                                        StringBuffer buf = new 
StringBuffer();
+                                                        for (int i = 1 ; i < 
query.getFields().size(); i++) {
+                                                            String a = 
Queries.getFieldAlias((StepField) query.getFields().get(i));
+                                                            if (buf.length() > 
0) buf.append(" ");
+                                                            
buf.append(next.getStringValue(a));
+                                                        }
                                                         return new 
Entry(next.getValue(alias),
-                                                                         
next.getStringValue(alias2));
+                                                                         
buf.toString());
                                                     }
                                                 }
                                             }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to