FilterPane Plugin
  1. FilterPane Plugin
  2. GPFILTERPANE-75

Filtering fails if domain class has attribute starting with 'op'

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Grails-FilterPane 2.0.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Grails 1.3.7 on Windows XP

      Description

      For 2.0.1, line 140 of FilterPaneTagLib.groovy should read

      if (key.startsWith('filter.op.') && filterOp != null && filterOp != '')
      

      instead of

      if (key.startsWith('filter.op') && filterOp != null && filterOp != '')
      

      otherwise you get funny results if your domain class happens to have an attribute starting with 'op', in my case 'openedAt'.

        Activity

        Hide
        Jonas Stenberg added a comment -

        Fixed since 2.2.4.
        http://jira.grails.org/browse/GPFILTERPANE-113 duplicates this issue.

        Show
        Jonas Stenberg added a comment - Fixed since 2.2.4. http://jira.grails.org/browse/GPFILTERPANE-113 duplicates this issue.

          People

          • Assignee:
            Steve Krenek
            Reporter:
            Alexander Franz
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: