FIX clone invoice with acount line

This commit is contained in:
lvessiller 2021-06-09 17:18:01 +02:00
parent 6170b28c3b
commit c37c371392

View File

@ -84,11 +84,7 @@ class InterfaceContactRoles extends DolibarrTriggers
if (is_array($TContact) && ! empty($TContact)) {
$TContactAlreadyLinked = array();
if ($object->id > 0) {
$cloneFrom = dol_clone($object, 1);
if (! empty($cloneFrom->id)) {
$TContactAlreadyLinked = array_merge($cloneFrom->liste_contact(- 1, 'external'), $cloneFrom->liste_contact(- 1, 'internal'));
}
$TContactAlreadyLinked = array_merge($object->liste_contact(- 1, 'external'), $object->liste_contact(- 1, 'internal'));
}
foreach ($TContact as $i => $infos) {