fix: hidden option MAIN_KEEP_REF_CUSTOMER_ON_CLONING always win on pr… (#30340)

* fix: hidden option MAIN_KEEP_REF_CUSTOMER_ON_CLONING always win on propal clone even if it's for enother customer

* Update propal.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
HENRY Florian 2024-07-10 18:53:57 +02:00 committed by GitHub
parent 9ddc8dd93c
commit 32aaab75b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1415,7 +1415,9 @@ class Propal extends CommonObject
}
// reset ref_client
$object->ref_client = '';
if (!getDolGlobalString('MAIN_KEEP_REF_CUSTOMER_ON_CLONING')) {
$object->ref_client = '';
}
// TODO Change product price if multi-prices
} else {