add old copy to manage value into triggers clone

This commit is contained in:
florian HENRY 2016-10-14 08:39:29 +02:00
parent 39aebb6944
commit c53b33c1f0

View File

@ -2358,6 +2358,7 @@ class Contrat extends CommonObject
if (! $notrigger && empty($error))
{
// Call trigger
$clonedObj->old_copy=$this;
$result = $clonedObj->call_trigger('CONTRACT_CLONE', $user);
if ($result < 0) {
$error ++;