Skip to content

Commit 916d07a

Browse files
author
valdislav
committed
MAGETWO-35638: Pull request processing
1 parent 615793c commit 916d07a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Reports/Model/Resource/Quote/Collection.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,10 @@ protected function _afterLoad()
369369
$item->setId($item->getProductId());
370370
$item->setPrice($productData[$item->getProductId()]['price'] * $item->getBaseToGlobalRate());
371371
$item->setName($productData[$item->getProductId()]['name']);
372-
$item->setOrders($orderData[$item->getProductId()]['orders']);
372+
$item->setOrders(0);
373+
if (isset($orderData[$item->getProductId()])) {
374+
$item->setOrders($orderData[$item->getProductId()]['orders']);
375+
}
373376
}
374377

375378
return $this;

0 commit comments

Comments
 (0)