OptionValues - Munge custom value names and return names in validate context
authorColeman Watts <coleman@civicrm.org>
Thu, 23 Apr 2020 17:50:25 +0000 (13:50 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 23 Apr 2020 19:14:14 +0000 (15:14 -0400)
commit1453c6db862950c135452bd36d20aa7f0e95c795
tree04bcc0f7bd171502953c84b320bfa538ea4dbc00
parentad909a049afd687b758b18364ca7de6c7ac7c36a
OptionValues - Munge custom value names and return names in validate context

Fixes a couple core bugs, where option value names were not being munged by default,
and custom field options were not being returned correctly in the 'validate' context.

This is the core change as part of APIV4 work
See https://lab.civicrm.org/dev/core/-/issues/1705
CRM/Core/BAO/CustomField.php
CRM/Core/BAO/OptionValue.php
tests/phpunit/Civi/CCase/SequenceListenerTest.php
tests/phpunit/api/v3/CustomValueTest.php