2 Replies Latest reply on Aug 19, 2004 6:43 AM by Thomas Heute

    Wrong search in GroupModule

    lcb Newbie

      The Search funktion in the GroupModule always returns only exact matches of the searchstring, ignoring the selected search method(Excat, Beginns with, Contains).

      After looking in the code if found out that the search method sets the wildcards only on default value. I think it should be inverse, add the wildcards when a string ist given.

      Here the patch:

      Index: GroupModule.java
      ===================================================================
      RCS file: /cvsroot/jboss/nukes/nukes/src/main/org/jboss/nukes/core/modules/group/GroupModule.java,v
      retrieving revision 1.10
      diff -u -r1.10 GroupModule.java
      --- GroupModule.java 3 Mar 2004 12:04:43 -0000 1.10
      +++ GroupModule.java 18 Jun 2004 10:23:32 -0000
      @@ -594,7 +594,7 @@
       Integer id = page.getParameterAsInteger("id");
       String search = page.getParameter("search", "%");
       int type = page.getParameterAsInt("type", 0);
      - if ("%".equals(search))
      + if (!("%".equals(search)))
       {
       switch (type)
       {