Skip to content

Wrong method signature #33625

Open
Open
@kassner

Description

@kassner

Preconditions

  1. Magento 2.4.2-p1;

Steps to reproduce

  1. Create an instance of Magento\Sales\Block\Order\Email\Items\DefaultItems;
  2. Call the getSku method of the instance passing an Magento\Sales\Model\Order\Item object;

Expected result

  1. Get the SKU for the product;

Actual result

  1. Error: Call to a member function getProductOptionByCode() on null in /var/www/magento/vendor/magento/module-sales/Block/Order/Email/Items/DefaultItems.php:88

Notes:
Please check the following file for scenario implementation.
Magento/Sales/view/frontend/templates/email/items/order/default.phtml


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • 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

Area: OrderComponent: CodeIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: dev in progressReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions