Skip to content

Commit

Permalink
#737 Exception in Low stock report for product with another name on a…
Browse files Browse the repository at this point in the history
…dditional storeview
  • Loading branch information
AlexandrVolkov committed Mar 24, 2018
1 parent a14f26d commit bd546d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Magento\InventoryConfiguration\Model\GetAllowedProductTypesForSourceItemsInterface;
use Magento\InventoryLowQuantityNotification\Setup\Operation\CreateSourceConfigurationTable;
use Magento\InventoryLowQuantityNotificationApi\Api\Data\SourceItemConfigurationInterface;
use Magento\Store\Model\Store;
use Psr\Log\LoggerInterface;

/**
Expand Down Expand Up @@ -160,7 +161,7 @@ private function joinCatalogProduct()
$this->getSelect()->joinInner(
['product_entity_varchar' => $productEavVarcharTable],
'product_entity_varchar.entity_id = product_entity.entity_id ' .
'AND product_entity_varchar.store_id = 0 ' .
'AND product_entity_varchar.store_id = ' . Store::DEFAULT_STORE_ID. ' ' .
'AND product_entity_varchar.attribute_id = ' . $nameAttribute->getAttributeId(),
[]
);
Expand Down

0 comments on commit bd546d6

Please sign in to comment.