diff --git a/app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php b/app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php index 4bc985c58d768..5ea2b636933a3 100644 --- a/app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php +++ b/app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Row.php @@ -85,7 +85,7 @@ public function execute($id = null) $ids = [$id]; $linkField = $this->metadataPool->getMetadata(ProductInterface::class)->getLinkField(); - $storeIds = $this->getProductAvailableStores($id); + $storeIds = $this->getAssignedStoreIdsOfProduct($id); $stores = $this->_storeManager->getStores(); foreach ($stores as $store) { @@ -137,12 +137,12 @@ public function execute($id = null) } /** - * Get list store id where product is enable + * Get list store id where the product is enable * * @param int $productId * @return array */ - private function getProductAvailableStores($productId) + private function getAssignedStoreIdsOfProduct($productId) { $select = $this->_connection->select(); $select->from(['e' => $this->_productIndexerHelper->getTable('store')], ['e.store_id'])