Skip to content

Commit 09f53c7

Browse files
committed
Merge remote-tracking branch 'origin/MC-19566' into 2.3.3-develop-pr72
2 parents fa0bcfd + 3910cac commit 09f53c7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,12 @@ protected function _updateRelationProducts($storeId, $productIds = null)
254254
*
255255
* @param int $storeId
256256
* @return \Magento\Catalog\Model\Indexer\Product\Flat\AbstractAction
257+
*
258+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
257259
*/
258260
protected function _cleanRelationProducts($storeId)
259261
{
260-
if (!$this->_productIndexerHelper->isAddChildData()) {
262+
if (!$this->_productIndexerHelper->isAddChildData() || !$this->_isFlatTableExists($storeId)) {
261263
return $this;
262264
}
263265

0 commit comments

Comments
 (0)