This commit is contained in:
Laurent Destailleur 2017-01-16 13:06:26 +01:00
parent c1d6ad90b3
commit 7ebb5f7d92

View File

@ -337,6 +337,8 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
} }
// Initialisation of datas // Initialisation of datas
if (is_object($object))
{
$object->socid = $sendtosocid; // To link to a company $object->socid = $sendtosocid; // To link to a company
$object->sendtoid = $sendtoid; // To link to a contact/address $object->sendtoid = $sendtoid; // To link to a contact/address
$object->actiontypecode = $actiontypecode; $object->actiontypecode = $actiontypecode;
@ -354,6 +356,7 @@ if (($action == 'send' || $action == 'relance') && ! $_POST['addfile'] && ! $_PO
$error++; $errors=$interface->errors; $error++; $errors=$interface->errors;
} }
// End call of triggers // End call of triggers
}
if ($error) if ($error)
{ {