Autocomplete - Fix incorrect matching on id instead of value
authorcolemanw <coleman@civicrm.org>
Thu, 23 Nov 2023 21:44:51 +0000 (16:44 -0500)
committercolemanw <coleman@civicrm.org>
Fri, 24 Nov 2023 14:47:28 +0000 (09:47 -0500)
commit2cd77ebf505e17776b53e33b5ae1d134b9a86edc
treea2c598f0f18860100753ac9e9c6001970838ecba
parent4a7ac29969c07583ab179b81e137f6258610dd77
Autocomplete - Fix incorrect matching on id instead of value

Backports https://github.com/civicrm/civicrm-core/pull/28283
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/Generic/AutocompleteAction.php