When default changed for an alphanumeric multi-select custom field defaulting breaks for that field on backend forms.
Overview
Editing the default value of a alphanumeric multi-select custom field results in that field having no default on backend forms (note I was able to recreate this on the "New Individual" form and "New Contribution" form).
Reproduction steps
- create a new contribution custom field (alphanumeric, drop-down select, with multi-select checked) and add a few options from the initial screen, making one default
- Go to create a new contribution from a backend form (ex: CiviCRM Admin Menu -> Contributions -> New Contribution) , watch that the default works correctly.
- Go back to the custom field, edit another option to make it the default
- Go to create a new contribution from a backend form (ex: CiviCRM Admin Menu -> Contributions -> New Contribution)
Current behaviour
No default is set for the field.
Expected behaviour
the option set as the new default should show as the default.
Environment information
I was able to recreate this on dmaster (CiviCRM 5.32.alpha1)
Comments
I believe the issue is that when the default is changed it is not saved to the database the same way. It also does not show in the API the same way. See screenshots below of the differences.