Skip to content

middlename('s) not saved for guest accounts #38593

Closed
@DRdevil27

Description

@DRdevil27

Preconditions and environment

  • 2.4.3-p3

Steps to reproduce

checkout as a guest. put a middle name in the field. it is not saved for guest accounts

Expected result

Middle name is saved in quote table and accessible in email template

Actual result

middle name is not saved in quote table and also not accessible in email template

Additional information

my guess is that this should not be "if is null" but "if is not null"
Magento\Quote\Model\QuoteManagement

if ($quote->getBillingAddress()->getMiddlename() === null) {
$quote->setCustomerMiddlename($quote->getBillingAddress()->getMiddlename());
}

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

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions