Skip to content

Commit

Permalink
Fix bug 16315: Change function's name
Browse files Browse the repository at this point in the history
  • Loading branch information
tna274 committed Mar 22, 2020
1 parent f2a562c commit 34c1818
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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'])
Expand Down

0 comments on commit 34c1818

Please sign in to comment.