Merge pull request #17867 from OPEN-DSI/v11-fix-clone-invoice-with-acount-line
FIX clone invoice with acount line
This commit is contained in:
commit
e41a3a2f42
@ -84,11 +84,7 @@ class InterfaceContactRoles extends DolibarrTriggers
|
|||||||
if (is_array($TContact) && ! empty($TContact)) {
|
if (is_array($TContact) && ! empty($TContact)) {
|
||||||
$TContactAlreadyLinked = array();
|
$TContactAlreadyLinked = array();
|
||||||
if ($object->id > 0) {
|
if ($object->id > 0) {
|
||||||
$cloneFrom = dol_clone($object, 1);
|
$TContactAlreadyLinked = array_merge($object->liste_contact(- 1, 'external'), $object->liste_contact(- 1, 'internal'));
|
||||||
|
|
||||||
if (! empty($cloneFrom->id)) {
|
|
||||||
$TContactAlreadyLinked = array_merge($cloneFrom->liste_contact(- 1, 'external'), $cloneFrom->liste_contact(- 1, 'internal'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($TContact as $i => $infos) {
|
foreach ($TContact as $i => $infos) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user