From e86c64bcf0aaeb366eab9af10bdc311a9a361145 Mon Sep 17 00:00:00 2001 From: Sumit Panwar Date: Mon, 23 Jun 2025 12:03:32 +0530 Subject: [PATCH] =?UTF-8?q?Fixed:=20fatal=20error=20when=20applying=20the?= =?UTF-8?q?=20same=20=E2=80=9Ccondition=20group=E2=80=9D=20in=20the=20cata?= =?UTF-8?q?log=20price=20rule?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- classes/SpecificPriceRule.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/SpecificPriceRule.php b/classes/SpecificPriceRule.php index f58edd76c..4b9f2fadc 100644 --- a/classes/SpecificPriceRule.php +++ b/classes/SpecificPriceRule.php @@ -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)) {