From a0f097c0a8bd9637602f2347f91cfab416295718 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 13 Dec 2023 16:44:12 +0100 Subject: [PATCH] add constant MAIN_IGNORE_CONTACTS_ON_CLONING --- htdocs/comm/propal/class/propal.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index 7ff7de223bf..c34c0db113b 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -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++;