From 16fc3d20c722a6a87404be9f53e750680b1fefb9 Mon Sep 17 00:00:00 2001 From: Benoit Charpentier Date: Tue, 14 Apr 2026 14:38:19 +0200 Subject: [PATCH] fix(app) : instance_id duplicates on clone button --- controllers/front/ajax.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/front/ajax.php b/controllers/front/ajax.php index 984b06a6..ef499ac7 100644 --- a/controllers/front/ajax.php +++ b/controllers/front/ajax.php @@ -271,12 +271,14 @@ public function displayAjaxduplicateState() 'id_shop', 'id_lang', 'position', + 'instance_id', ]; foreach ($excludedProperties as $property) { unset($originalValues[$property]); } $newBlock = new PrettyBlocksModel(); $newBlock->hydrate($originalValues); + $newBlock->instance_id = uniqid(); $newBlock->id_shop = $idShop; $newBlock->id_lang = (int) $language; $newBlock->add();