Closed
Description
Preconditions and environment
Magento version 2.4.6-p8
Steps to reproduce
- Create new Magento2 site.
- Login to admin.
- Go to Stores > Configuration > Customers > Customer Configuration.
- Expand "Name and Address Options".
- Confirm "Show Middle Name (initial) is set to "No", and "Use system value" is checked.
- Uncheck "Use system value"
- Save
- Check "Use system value"
- Save
Expected result
Customer attribute "middlename" stays not required
Actual result
Customer attribute "middlename" is now required:
Additional information
When Magento2 is initially installed, the "middlename" Customer attribute has a null attribute_model
in the db (eav_attribute
) Modifying the "Use default value" will set attribute_model
to Magento\Customer\Model\Attribute
Setting "Show Middle Name" to ANY value makes the attribute non-required, as long as "Use default value" is not checked. Checking "Use default value" will cause the attribute to become required. Basically this turns the "Use default value" checkbox into a "make middlename not required" checkbox
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.