Skip to content

Show prefix/suffix setting ignored when set to No #40036

Open
@theodorhanu

Description

@theodorhanu

Preconditions and environment

  • Magento 2.4.7-p4

Steps to reproduce

Example:

  1. Set the show prefix/suffix to Required
  2. Create a customer and set its prefix
  3. Place an order with an address containing the prefix/suffix filled
  4. Set the Show prefix/suffix back to no
  5. 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

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

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions