We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615793c commit 916d07aCopy full SHA for 916d07a
app/code/Magento/Reports/Model/Resource/Quote/Collection.php
@@ -369,7 +369,10 @@ protected function _afterLoad()
369
$item->setId($item->getProductId());
370
$item->setPrice($productData[$item->getProductId()]['price'] * $item->getBaseToGlobalRate());
371
$item->setName($productData[$item->getProductId()]['name']);
372
- $item->setOrders($orderData[$item->getProductId()]['orders']);
+ $item->setOrders(0);
373
+ if (isset($orderData[$item->getProductId()])) {
374
+ $item->setOrders($orderData[$item->getProductId()]['orders']);
375
+ }
376
}
377
378
return $this;
0 commit comments