Skip to content

Commit f3115a1

Browse files
committed
ACP2E-3786: Not able to preview Scheduled Product update with Category Permissions enabled
1 parent cefe9da commit f3115a1

File tree

1 file changed

+3
-1
lines changed
  • app/code/Magento/Elasticsearch/Model/Indexer/Fulltext/Plugin/Category/Product/Action

1 file changed

+3
-1
lines changed

app/code/Magento/Elasticsearch/Model/Indexer/Fulltext/Plugin/Category/Product/Action/Rows.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ public function afterExecute(
8989
if (!empty($productIds)) {
9090
$indexer = $this->indexerRegistry->get(FulltextIndexer::INDEXER_ID);
9191
if ($indexer->isScheduled()) {
92-
$indexer->getView()->getChangelog()->addList($productIds);
92+
$changelog = $indexer->getView()->getChangelog();
93+
$changelog->create();
94+
$changelog->addList($productIds);
9395
} else {
9496
$indexer->invalidate();
9597
}

0 commit comments

Comments
 (0)