From d618617d842f8cd18fb8fb5a90cc336c3d330546 Mon Sep 17 00:00:00 2001 From: Hystepik Date: Thu, 24 Aug 2023 13:51:51 +0200 Subject: [PATCH] Fix #25671 product clone fatal error --- htdocs/product/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 146d979441d..d0311c0a597 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -904,7 +904,7 @@ if (empty($reshook)) { } else { if ($object->id > 0) { $error = 0; - $clone = dol_clone($object, 2); + $clone = dol_clone($object, 1); $clone->id = null; $clone->ref = GETPOST('clone_ref', 'alphanohtml');