File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Reports/Model/ResourceModel/Quote/Item Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -219,8 +219,10 @@ protected function _afterLoad()
219
219
$ orderData = $ this ->getOrdersData ($ productIds );
220
220
foreach ($ items as $ item ) {
221
221
$ item ->setId ($ item ->getProductId ());
222
- $ item ->setPrice ($ productData [$ item ->getProductId ()]['price ' ] * $ item ->getBaseToGlobalRate ());
223
- $ item ->setName ($ productData [$ item ->getProductId ()]['name ' ]);
222
+ if (isset ($ productData [$ item ->getProductId ()])) {
223
+ $ item ->setPrice ($ productData [$ item ->getProductId ()]['price ' ] * $ item ->getBaseToGlobalRate ());
224
+ $ item ->setName ($ productData [$ item ->getProductId ()]['name ' ]);
225
+ }
224
226
$ item ->setOrders (0 );
225
227
if (isset ($ orderData [$ item ->getProductId ()])) {
226
228
$ item ->setOrders ($ orderData [$ item ->getProductId ()]['orders ' ]);
You can’t perform that action at this time.
0 commit comments