Autocomplete - Fix incorrect matching on id instead of value
authorcolemanw <coleman@civicrm.org>
Thu, 23 Nov 2023 20:07:58 +0000 (15:07 -0500)
committercolemanw <coleman@civicrm.org>
Fri, 24 Nov 2023 01:31:22 +0000 (20:31 -0500)
commit2dced75c53895af0a6ba66bea67d4a278b9f38de
tree1d4ab418b91994ed9524f2968497f0dd3a35e55c
parent5a7b6fa01e10d2f0acf28a9f9f7c53545ba84d4e
Autocomplete - Fix incorrect matching on id instead of value

Fixes https://lab.civicrm.org/dev/core/-/issues/4799
Custom fields of type Autocomplete-Select were incorrectly using the id of the optionValue.
This fixes it to use the value, and also show the value in the autocomplete results.
Civi/Api4/Event/Subscriber/AutocompleteFieldSubscriber.php
Civi/Api4/OptionValue.php
Civi/Api4/Service/Autocomplete/OptionValueAutocompleteProvider.php
tests/phpunit/api/v4/Custom/ExportCustomGroupTest.php