SearchKit - Fix handing of new EntityReference custom fields
authorColeman Watts <coleman@civicrm.org>
Sun, 26 Mar 2023 20:46:08 +0000 (16:46 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 26 Mar 2023 20:46:15 +0000 (16:46 -0400)
commit7c2971c26b64328fd00230180e4d5a444684238a
treedf622328f4d42d719e4a8f0ac54dada4c2085636
parent1fca71473e568314b5b62c95873a88464d4666db
SearchKit - Fix handing of new EntityReference custom fields

Fixes the metadata for the new EntityReference custom fields to correctly display.

Removes redundant function SpecFormatter::customFieldHasOptions which was completely
identical to CRM_Core_BAO_CustomField::hasOptions except for one line which was incorrect.
Civi/Api4/Service/Spec/SpecFormatter.php
ext/search_kit/Civi/Search/Admin.php
tests/phpunit/api/v4/Custom/CustomEntityReferenceTest.php [new file with mode: 0644]