Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.0
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM, NYSS
-
Labels:None
-
Funding Source:Core Team Contract
Description
This work is for Bluebird - http://senatedev.senate.state.ny.us/issues/show/4407. Please record time there.
-------------------
Provide option to combine privacy options in advanced search with OR operator, or with AND operator. New default for this will be OR (currently we always do AND which is less useful).
Replace the current set of checkboxes with a crmasmSelect field for the options, plus 1 radio button (for the Exclude/Include toggle) and a dropdown for the ANd/ OR operator. Screen shot of new layout is attached.
NOTE: We need to use new field names for the 3 replacement fields in order to maintain backwards compatibility / not break existing smart groups.
Field names and defaults:
- crmasmSelect type field with the privacy options: "privacy_options"
- select with AND / OR option: "privacy_operator", default = "OR"
- radio button for Exclude / Include: "privacy_toggle", default Exclude (value = 1), Include (value = 2)
Need a migration path for existing smart groups to set correct default values. This is what is sent in now:
[privacy] => Array
(
[do_not_phone] => 1
[do_not_email] => 1
[do_not_mail] =>
[do_not_sms] =>
[do_not_trade] =>
[do_not_toggle] =>
)