From d22bfa8847abe92451b8c9f9831ce99a32f954d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Jun 2014 18:16:22 +0200 Subject: [PATCH] Fix: Cloning must use dol_clone --- htdocs/commande/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index e48787c5c34..0b9590d7e2f 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -113,7 +113,7 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && $user->rights->commande-> if ($object->id > 0) { //Because createFromClone modifies the object, we must clone it so that we can restore it later - $orig = clone $object; + $orig = dol_clone($object); $result=$object->createFromClone($socid); if ($result > 0)