Merge pull request #11516 from atm-john/9.0_fix_fourn_code_preload

FIX The proposed new supplier code does not work
This commit is contained in:
Laurent Destailleur 2019-07-16 13:25:41 +03:00 committed by GitHub
commit de2c189138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -949,12 +949,13 @@ else
if(empty($duplicate_code_error)) {
$object->code_client = GETPOST('customer_code', 'alpha');
$object->fournisseur = GETPOST('fournisseur')?GETPOST('fournisseur'):$object->fournisseur;
$object->code_fournisseur = GETPOST('supplier_code', 'alpha');
}
else {
setEventMessages($langs->trans('NewCustomerSupplierCodeProposed'),'', 'warnings');
}
$object->code_fournisseur = GETPOST('supplier_code', 'alpha');
$object->address = GETPOST('address', 'alpha');
$object->zip = GETPOST('zipcode', 'alpha');
$object->town = GETPOST('town', 'alpha');