Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4626

multiselect views filters do not make default filter type selection

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.5
    • Fix Version/s: 2.2.6
    • Labels:
      None

      Description

      Views filters that use a select/multiselect present 4 options as to how the filter works:

      Is one of
      Is not one of
      Is empty (NULL)
      Is not empty (NULL)

      One of these should be selected by default. However, with the CiviCRM Views filters, none of them are selected - so if the user fails to select one they end up with a broken filter. This is especially true when they expose the filter as they end up with no dropdown at all.

      Attached patch fixes this by ensuring that all civicrm views filters call parent::construct() in their construct() override.

        Attachments

          Activity

            People

            • Assignee:
              shailesh Shailesh Lende
              Reporter:
              mrfelton Tom Kirkpatrick
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: