Merge branch '11.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
Conflicts: htdocs/core/triggers/interface_90_modSociete_ContactRoles.class.php
This commit is contained in:
commit
6078267f86
@ -83,12 +83,9 @@ class InterfaceContactRoles extends DolibarrTriggers
|
|||||||
|
|
||||||
if (is_array($TContact) && !empty($TContact)) {
|
if (is_array($TContact) && !empty($TContact)) {
|
||||||
$TContactAlreadyLinked = array();
|
$TContactAlreadyLinked = array();
|
||||||
if ($object->id > 0) {
|
|
||||||
$cloneFrom = dol_clone($object, 1);
|
|
||||||
|
|
||||||
if (!empty($cloneFrom->id)) {
|
if ($object->id > 0) {
|
||||||
$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) {
|
foreach ($TContact as $i => $infos) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user