Merge pull request #27084 from altairisfr/MAIN_IGNORE_CONTACTS_ON_CLONING

add constant MAIN_IGNORE_CONTACTS_ON_CLONING
This commit is contained in:
Laurent Destailleur 2023-12-14 01:49:43 +01:00 committed by GitHub
commit e145a087fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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++;