OptionValues - Specify id+name+label for option callbacks that use it
authorColeman Watts <coleman@civicrm.org>
Wed, 9 Feb 2022 02:53:48 +0000 (21:53 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 9 Feb 2022 15:11:26 +0000 (10:11 -0500)
commitc44d3d257505fa6556aa06843f8d9d8817039a57
tree1971e00a4919e54cfe07acf7bfd700a48c3d2af8
parent815facd4d58fff895ae9b969f23d68b5baef217a
OptionValues - Specify id+name+label for option callbacks that use it

Previously some API calls relied on a bug which conflated name with label,
that bug has been fixed, causing some test failures. The solution is to
update the option lists with a full multidimensional array with translated labels
and untranslated names.
CRM/Core/BAO/CustomField.php
CRM/Core/DAO/StatusPreference.php
CRM/Core/SelectValues.php
CRM/Custom/Page/Field.php
CRM/Utils/Check.php
Civi/Api4/Action/System/Check.php
tests/phpunit/api/v3/CustomFieldTest.php
tests/phpunit/api/v3/CustomValueTest.php
xml/schema/Core/StatusPreference.xml