Problem/Motivation
When editing the title field, the key (or machine name) field is not updated. This happens when the form was first submitted without a value in the title field.
The key field should be automatically populated from the title value, as it is before the validation failure.
Example forms where the issue occurs
- Role add: /admin/people/roles/add
- Field add:/admin/structure/types/manage/{node_type}/fields/add-field
- Webform field add
Steps to reproduce
- When adding a field, leave the title field blank
- Click "Save"
- As expected, validation fails
- Enter a value in the title field
- Click "Save"
- A value for the machine name needs to be entered.
Proposed resolution
TBA
Remaining tasks
check for duplicates
patch
review
commit