Skip to content

Commit 78b353e

Browse files
committed
MC-38168: Manual Indexer after Merchandising - Empty Catalog/ Number of products incorrect
1 parent c3fa46d commit 78b353e

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Catalog/Model/Indexer/Category/Product/Action

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Model/Indexer/Category/Product/Action/Rows.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function execute(array $entityIds = [], $useTempTable = false)
111111
$this->limitationByCategories = array_unique($this->limitationByCategories);
112112
$this->useTempTable = $useTempTable;
113113
$indexer = $this->indexerRegistry->get(ProductCategoryIndexer::INDEXER_ID);
114-
$workingState = $this->getWorkingState();
114+
$workingState = $this->isWorkingState();
115115

116116
if (!$indexer->isScheduled()
117117
|| ($indexer->isScheduled() && !$useTempTable)
@@ -127,7 +127,7 @@ public function execute(array $entityIds = [], $useTempTable = false)
127127
$this->reindex();
128128

129129
// get actual state
130-
$workingState = $this->getWorkingState();
130+
$workingState = $this->isWorkingState();
131131

132132
if ($useTempTable && !$workingState && $indexer->isScheduled()) {
133133
foreach ($this->storeManager->getStores() as $store) {
@@ -161,7 +161,7 @@ public function execute(array $entityIds = [], $useTempTable = false)
161161
*
162162
* @return bool
163163
*/
164-
private function getWorkingState() : bool
164+
private function isWorkingState() : bool
165165
{
166166
$indexer = $this->indexerRegistry->get(ProductCategoryIndexer::INDEXER_ID);
167167
$sharedIndexer = $this->indexerRegistry->get(CategoryProductIndexer::INDEXER_ID);

0 commit comments

Comments
 (0)