Open
Description
Preconditions and environment
- Magento 2.4.7-p4
Steps to reproduce
Example:
- Set the show prefix/suffix to Required
- Create a customer and set its prefix
- Place an order with an address containing the prefix/suffix filled
- Set the Show prefix/suffix back to no
- Visit the order page in admin area and notice the Customer Name under Account Information having prefix shown
Expected result
The prefix/suffix should be stripped depending on config setting
Actual result
When set to No, the prefix/suffix is still shown if it exists at the order level
Additional information
Issue seems to reside in the way isVisibleCustomerPrefix / isVisibleCustomerSuffix checks the value of the setting (comparison with type checking ). When set to No, the value returned by $this->scopeConfig->getValue() is null rather than an empty string.
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
Assignees
Labels
Type
Projects
Status
Needs Update