[regression] CiviCRM reports smart groups won't work due to deleted custom fields that aren't deleted
Any smart group based on at least one custom field that allows multiple selections (checkboxes, multi-select, etc.) will incorrectly show as having a deleted custom field in the CRM_Utils_Check_Component_Schema::checkSmartGroupCustomFieldCriteria()
check.
To replicate on the demo site:
- Create a new custom field with Input Field Type of checkbox (see screenshot). Make the field searchable.
- Populate this value for at least one contact (you can't create a search group if no contacts are found).
- Using Advanced Search, search for the custom value you just created.
- Create a Smart Group.
- Run the API
System.check
(or visit the System Status page).
Expected Result
The newly created smart group should not report a deleted custom field.
Actual result
¯\_(ツ)_/¯
I'm not sure how best to handle this without regex...so I'll submit a patch with regex and let smarter heads decide if that's acceptable.