dev/core#1817 - Editing a custom field option value from the custom field admin screen changes the name field #17681
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
https://lab.civicrm.org/dev/core/-/issues/1817
/civicrm/admin/custom/group/field/option?reset=1&action=browse&fid=18&gid=7
. Administer - Customize Data and Screens - Custom Fields - View and Edit Custom fields - Edit Multiple Choice Options.Note that if you edit the option from Administer - System Settings - Option Groups, it's a different form and it works ok.
Before
name field gets changed so you need to edit your code whereever you use name to access it whenever the label is changed.
After
name only gets set for new option values
Technical Details
I think there are two separate forms to do the same thing because of history. A future todo might be to consolidate and figure out what else one might be doing that the other isn't doing.
Comments
Has test.