-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Area: OrderComponent: order statusIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: PR CreatedIndicates that Pull Request has been created to fix issueIndicates that Pull Request has been created to fix issueProgress: doneReported on 2.4.7-p3Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch
Description
Preconditions and environment
- Magento version - 2.4.7-p3
- Create a configurable product and place an order with a customer for this product
- After placing the order delete the product from the Magneto system
Steps to reproduce
- Navigate the user that has placed this order in the admin,
- Select the orders tab,
- Find the desired order and click reorder,
Expected result
A message is shown to the user and the order is not placed.
Actual result
An uncaught exception cause the website to break.
Additional information
This happens because of the method \Magento\ConfigurableProductSales\Model\Order\Reorder\OrderedProductAvailabilityChecker::isAvailable
.
Here the following will cause an uncaught exception.
$parentItem = $this->productRepository->getById($item->getParentItem()->getProductId());
To fix this we have created an around plugin that first performs a try-catch on the getById and when something is caught then we simply return false, otherwise we continue onto the main method.
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
Area: OrderComponent: order statusIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: PR CreatedIndicates that Pull Request has been created to fix issueIndicates that Pull Request has been created to fix issueProgress: doneReported on 2.4.7-p3Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branch