From a14f26df4b073debd17e0326a29fc858269c6caf Mon Sep 17 00:00:00 2001 From: alexandr Date: Sat, 24 Mar 2018 17:40:22 +0200 Subject: [PATCH] #737 Exception in Low stock report for product with another name on additional storeview --- .../Model/ResourceModel/LowQuantityCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/InventoryLowQuantityNotification/Model/ResourceModel/LowQuantityCollection.php b/app/code/Magento/InventoryLowQuantityNotification/Model/ResourceModel/LowQuantityCollection.php index 2ca3250bb4dc..7add49b4545a 100644 --- a/app/code/Magento/InventoryLowQuantityNotification/Model/ResourceModel/LowQuantityCollection.php +++ b/app/code/Magento/InventoryLowQuantityNotification/Model/ResourceModel/LowQuantityCollection.php @@ -168,7 +168,7 @@ private function joinCatalogProduct() $this->getSelect()->joinLeft( ['product_entity_varchar_store' => $productEavVarcharTable], 'product_entity_varchar_store.entity_id = product_entity.entity_id ' . - 'AND product_entity_varchar_store.store_id = ' . $this->filterStoreId . + 'AND product_entity_varchar_store.store_id = ' . $this->filterStoreId . ' ' . 'AND product_entity_varchar_store.attribute_id = ' . $nameAttribute->getAttributeId(), ['product_name' => 'IFNULL(product_entity_varchar_store.value, product_entity_varchar.value)'] );