Issue Details (XML | Word | Printable)

Key: CRM-4626
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed/Completed
Priority: Trivial Trivial
Assignee: Shailesh Lende
Reporter: Tom Kirkpatrick
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
CiviCRM

multiselect views filters do not make default filter type selection

Created: 12/Jun/09 08:30 AM   Updated: 01/Sep/09 10:53 AM
Component/s: Drupal Integration Modules
Affects Version/s: 2.2.5
Fix Version/s: 2.2.6

Time Tracking:
Not Specified

File Attachments: 1. Text File civicrm_views_filter_construct.patch (11 kB)



 Description  « Hide
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.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Kurund Jalmi added a comment - 16/Jul/09 07:11 AM
Batch move to verification

Yashodha Chaku added a comment - 16/Jul/09 11:56 AM
assigning for 3.0 QA

Shailesh Lende added a comment - 01/Sep/09 10:53 AM
Tested and verified for v3.0 rev-23495.