Skip to content

Commit b1cc54e

Browse files
Eugene ShakhsuvarovEugene Shakhsuvarov
authored andcommitted
Merge branch 'patch-2' of github.com:nicka101/magento2 into 2.4-develop-prs-patch-2
2 parents 2e45de7 + fa9587d commit b1cc54e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public function __construct(
164164
*/
165165
abstract public function execute($ids);
166166

167+
// phpcs:disable
167168
/**
168169
* Synchronize data between index storage and original storage
169170
*
@@ -195,6 +196,7 @@ protected function _syncData(array $processIds = [])
195196
return $this;
196197
}
197198

199+
// phpcs:enable
198200
/**
199201
* Prepare website current dates table
200202
*
@@ -429,6 +431,7 @@ protected function _reindexRows($changedIds = [])
429431
*/
430432
private function deleteIndexData(array $entityIds)
431433
{
434+
$entityIds = array_unique(array_map('intval', $entityIds));
432435
foreach ($this->dimensionCollectionFactory->create() as $dimensions) {
433436
$select = $this->getConnection()->select()->from(
434437
['index_price' => $this->tableMaintainer->getMainTableByDimensions($dimensions)],
@@ -439,6 +442,7 @@ private function deleteIndexData(array $entityIds)
439442
}
440443
}
441444

445+
// phpcs:disable
442446
/**
443447
* Copy relations product index from primary index to temporary index table by parent entity
444448
*
@@ -488,6 +492,7 @@ protected function _copyRelationIndexData($parentIds, $excludeIds = null)
488492
return $this;
489493
}
490494

495+
// phpcs:enable
491496
/**
492497
* Retrieve index table by dimension that will be used for write operations.
493498
*

0 commit comments

Comments
 (0)