Author: tmortagne Date: 2007-12-19 15:39:42 +0100 (Wed, 19 Dec 2007) New Revision: 6432
Modified: xwiki-platform/core/trunk/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/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java =================================================================== --- xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java 2007-12-19 14:39:26 UTC (rev 6431) +++ xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/user/impl/xwiki/XWikiGroupServiceImpl.java 2007-12-19 14:39:42 UTC (rev 6432) @@ -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 notifications@xwiki.org http://lists.xwiki.org/mailman/listinfo/notifications