2
0
forked from Wavyzz/dolibarr

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

View File

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