diff --git a/app/code/Radosav/Reportfix/Model/Magento/Reports/ResourceModel/Quote/Item/Collection.php b/app/code/Radosav/Reportfix/Model/Magento/Reports/ResourceModel/Quote/Item/Collection.php index 4cfc8d2..53669f8 100644 --- a/app/code/Radosav/Reportfix/Model/Magento/Reports/ResourceModel/Quote/Item/Collection.php +++ b/app/code/Radosav/Reportfix/Model/Magento/Reports/ResourceModel/Quote/Item/Collection.php @@ -14,9 +14,8 @@ protected function _afterLoad() } $productData = $this->getProductData($productIds); $orderData = $this->getOrdersData($productIds); - $existing = $this->productResource->getAllIds(); foreach ($items as $item) { - if(in_array($item->getProductId(),$existing)){ + if(!isset($productData[$item->getProductId()])){ continue; } $item->setId($item->getProductId()); @@ -31,5 +30,3 @@ protected function _afterLoad() return $this; } } - -