Merge pull request #1521 from sumitwebkul/gli-2736

Fixed: Fatal error when applying the same “condition group” while catalog price rule creation in back-office
This commit is contained in:
Rohit Jain
2025-06-24 18:10:07 +05:30
committed by GitHub

View File

@@ -266,6 +266,8 @@ class SpecificPriceRuleCore extends ObjectModel
$result = array_merge($result, Db::getInstance()->executeS($query));
}
// Remove duplicate after the array_merge
$result = array_unique($result, SORT_REGULAR);
} else {
// All products without conditions
if ($products && count($products)) {