Add is empty filter to search / api
authoreileen <emcnaughton@wikimedia.org>
Tue, 2 Mar 2021 12:31:55 +0000 (01:31 +1300)
committerColeman Watts <coleman@civicrm.org>
Mon, 8 Mar 2021 22:34:53 +0000 (17:34 -0500)
commitc0e68893f8a1ff722718ef2c04ab206dd556481d
treec844f0ba2aa062e411ed11e20e217af79c926434
parent297ed5be14b30302ca3d5a050b76978cf6c59b57
Add is empty filter to search / api

This is already offered in Query
https://github.com/civicrm/civicrm-core/blob/5db2212e2d408f4611439734db1a31ab32dced2f/CRM/Contact/BAO/Query.php#L3420-L3428

And in Report
https://github.com/civicrm/civicrm-core/blob/c3fffe27cb8203634c7a2c047686ba3d12cc38bd/CRM/Report/Form.php#L2105-L2124

(the latter munges it in with NULL but as we often save empty strings NULL
does not alwasy work for strings)
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Generic/Traits/ArrayQueryActionTrait.php
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Utils/CoreUtil.php
ang/api4Explorer/Explorer.js
ext/search/Civi/Search/Admin.php
ext/search/ang/crmSearchAdmin/crmSearchClause.component.js
ext/search/ang/crmSearchAdmin/crmSearchClause.html
tests/phpunit/api/v4/Action/BasicActionsTest.php
tests/phpunit/api/v4/Action/ContactGetTest.php