diff --git a/app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php b/app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php index 8e4eda70b7083..202c87623dfff 100644 --- a/app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php +++ b/app/code/Magento/Catalog/Model/Indexer/Product/Price/AbstractAction.php @@ -164,6 +164,7 @@ public function __construct( */ abstract public function execute($ids); + // phpcs:disable /** * Synchronize data between index storage and original storage * @@ -195,6 +196,7 @@ protected function _syncData(array $processIds = []) return $this; } + // phpcs:enable /** * Prepare website current dates table * @@ -429,6 +431,7 @@ protected function _reindexRows($changedIds = []) */ private function deleteIndexData(array $entityIds) { + $entityIds = array_unique(array_map('intval', $entityIds)); foreach ($this->dimensionCollectionFactory->create() as $dimensions) { $select = $this->getConnection()->select()->from( ['index_price' => $this->tableMaintainer->getMainTableByDimensions($dimensions)], @@ -439,6 +442,7 @@ private function deleteIndexData(array $entityIds) } } + // phpcs:disable /** * Copy relations product index from primary index to temporary index table by parent entity * @@ -488,6 +492,7 @@ protected function _copyRelationIndexData($parentIds, $excludeIds = null) return $this; } + // phpcs:enable /** * Retrieve index table by dimension that will be used for write operations. *