Author: tmortagne
Date: 2007-12-19 15:39:26 +0100 (Wed, 19 Dec 2007)
New Revision: 6431

Modified:
   
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java
Log:
XWIKI-1964: getMatchedUsers doesn't work as expected when using more than one 
filters

Modified: 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java
===================================================================
--- 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java
       2007-12-19 14:37:26 UTC (rev 6430)
+++ 
xwiki-platform/core/branches/xwiki-core-1.2/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java
       2007-12-19 14:39:26 UTC (rev 6431)
@@ -476,10 +476,10 @@
 
         // Manage object match strings
         if (matchFields != null) {
-            for (; fieldIndex < matchFields.length; ++fieldIndex) {
-                String fieldName = (String) matchFields[fieldIndex][0];
-                String type = (String) matchFields[fieldIndex][1];
-                String value = (String) matchFields[fieldIndex][2];
+            for (int i = 0; i < matchFields.length; ++i) {
+                String fieldName = (String) matchFields[i][0];
+                String type = (String) matchFields[i][1];
+                String value = (String) matchFields[i][2];
 
                 if (type != null) {
                     String fieldPrefix;

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to