Skip to content

Customer attribute "middlename" marked as required when Show Middle Name (initial) set to default #39919

Closed
@resplin

Description

@resplin

Preconditions and environment

Magento version 2.4.6-p8

Steps to reproduce

  1. Create new Magento2 site.
  2. Login to admin.
  3. Go to Stores > Configuration > Customers > Customer Configuration.
  4. Expand "Name and Address Options".
  5. Confirm "Show Middle Name (initial) is set to "No", and "Use system value" is checked.
  6. Uncheck "Use system value"
  7. Save
  8. Check "Use system value"
  9. Save

Expected result

Customer attribute "middlename" stays not required

Actual result

Customer attribute "middlename" is now required:

Image

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”.

Metadata

Metadata

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.6-p8Indicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions