Fix: Cloning must use dol_clone
This commit is contained in:
parent
0778d38b2c
commit
d22bfa8847
@ -113,7 +113,7 @@ if ($action == 'confirm_clone' && $confirm == 'yes' && $user->rights->commande->
|
|||||||
if ($object->id > 0)
|
if ($object->id > 0)
|
||||||
{
|
{
|
||||||
//Because createFromClone modifies the object, we must clone it so that we can restore it later
|
//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);
|
$result=$object->createFromClone($socid);
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user