Fixed: fatal error when applying the same “condition group” in the catalog price rule

This commit is contained in:
Sumit Panwar
2025-06-23 12:03:32 +05:30
parent bd7bfcfdf5
commit e86c64bcf0

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)) {