mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Init code_client and code_fournisseur to '', not null
This commit is contained in:
parent
e36dccff59
commit
4e05ac84f1
|
|
@ -562,12 +562,12 @@ if (empty($reshook)) {
|
|||
} else {
|
||||
if ($result == -3 && in_array('ErrorCustomerCodeAlreadyUsed', $object->errors)) {
|
||||
$duplicate_code_error = true;
|
||||
$object->code_client = null;
|
||||
$object->code_client = '';
|
||||
}
|
||||
|
||||
if ($result == -3 && in_array('ErrorSupplierCodeAlreadyUsed', $object->errors)) {
|
||||
$duplicate_code_error = true;
|
||||
$object->code_fournisseur = null;
|
||||
$object->code_fournisseur = '';
|
||||
}
|
||||
|
||||
if ($db->lasterrno() == 'DB_ERROR_RECORD_ALREADY_EXISTS') { // TODO Sometime errors on duplicate on profid and not on code, so we must manage this case
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user