Merge pull request #27084 from altairisfr/MAIN_IGNORE_CONTACTS_ON_CLONING
add constant MAIN_IGNORE_CONTACTS_ON_CLONING
This commit is contained in:
commit
e145a087fb
1 changed files with 1 additions and 1 deletions
|
|
@ -1512,7 +1512,7 @@ class Propal extends CommonObject
|
|||
$error++;
|
||||
}
|
||||
|
||||
if (!$error) {
|
||||
if (!$error && !getDolGlobalInt('MAIN_IGNORE_CONTACTS_ON_CLONING')) {
|
||||
// copy internal contacts
|
||||
if ($object->copy_linked_contact($this, 'internal') < 0) {
|
||||
$error++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue