Open
Description
Preconditions
- Magento 2.4.2-p1;
Steps to reproduce
- Create an instance of
Magento\Sales\Block\Order\Email\Items\DefaultItems
; - Call the getSku method of the instance passing an
Magento\Sales\Model\Order\Item
object;
Expected result
- Get the SKU for the product;
Actual result
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”.