From 7a59aab959db30cff66498ca87ec722816ccbb69 Mon Sep 17 00:00:00 2001 From: amit sharma Date: Tue, 22 Sep 2026 19:19:56 +0530 Subject: [PATCH] Fixed: Prevent duplicate entry fatal error when clicking the Save button twice on the Room Type Features tab --- classes/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Product.php b/classes/Product.php index a7a9a9518..73f423a3e 100644 --- a/classes/Product.php +++ b/classes/Product.php @@ -4041,7 +4041,7 @@ class ProductCore extends ObjectModel $id_value = Db::getInstance()->Insert_ID(); } $row = array('id_feature' => (int)$id_feature, 'id_product' => (int)$this->id, 'id_feature_value' => (int)$id_value); - Db::getInstance()->insert('feature_product', $row); + Db::getInstance()->insert('feature_product', $row, false, true, Db::INSERT_IGNORE); SpecificPriceRule::applyAllRules(array((int)$this->id)); if ($id_value) { return ($id_value);