Fix: Cloning must use dol_clone

This commit is contained in:
Laurent Destailleur 2014-06-21 18:16:22 +02:00
parent 0778d38b2c
commit d22bfa8847

View File

@ -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)