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 @@ -220,8 +220,10 @@ protected function _afterLoad()
220
220
$ orderData = $ this ->getOrdersData ($ productIds );
221
221
foreach ($ items as $ item ) {
222
222
$ item ->setId ($ item ->getProductId ());
223
- $ item ->setPrice ($ productData [$ item ->getProductId ()]['price ' ] * $ item ->getBaseToGlobalRate ());
224
- $ item ->setName ($ productData [$ item ->getProductId ()]['name ' ]);
223
+ if (isset ($ productData [$ item ->getProductId ()])) {
224
+ $ item ->setPrice ($ productData [$ item ->getProductId ()]['price ' ] * $ item ->getBaseToGlobalRate ());
225
+ $ item ->setName ($ productData [$ item ->getProductId ()]['name ' ]);
226
+ }
225
227
$ item ->setOrders (0 );
226
228
if (isset ($ orderData [$ item ->getProductId ()])) {
227
229
$ item ->setOrders ($ orderData [$ item ->getProductId ()]['orders ' ]);
You can’t perform that action at this time.
0 commit comments