Skip to content

Commit 1cd7f2c

Browse files
committed
MAGE-1122 Swap public method
1 parent ad7eef0 commit 1cd7f2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Controller/Adminhtml/Reindex/Save.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\Backend\App\Action\Context;
1414
use Magento\Catalog\Api\ProductRepositoryInterface;
1515
use Magento\Framework\Controller\ResultFactory;
16+
use Magento\Framework\Exception\LocalizedException;
1617
use Magento\Framework\Exception\NoSuchEntityException;
1718
use Magento\Store\Model\StoreManagerInterface;
1819

@@ -110,6 +111,7 @@ public function execute()
110111
* @param $stores
111112
* @return void
112113
* @throws NoSuchEntityException
114+
* @throws LocalizedException
113115
*/
114116
protected function checkAndReindex($product, $stores)
115117
{
@@ -199,7 +201,7 @@ protected function checkAndReindex($product, $stores)
199201
$productIds = [$product->getId()];
200202
$productIds = array_merge($productIds, $this->productHelper->getParentProductIds($productIds));
201203

202-
$this->productIndexBuilder->rebuildEntityIds($storeId, $productIds);
204+
$this->productIndexBuilder->buildIndexList($storeId, $productIds);
203205
$this->messageManager->addSuccessMessage(
204206
__(
205207
'The Product "%1" (%2) has been reindexed for store "%3 / %4 / %5".',

0 commit comments

Comments
 (0)