Merge pull request #12791 from ptocquin/patch-1

Update api_supplier_invoices.class.php
This commit is contained in:
Laurent Destailleur 2020-01-03 20:42:55 +01:00 committed by GitHub
commit e178d38bf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -200,7 +200,7 @@ class SupplierInvoices extends DolibarrApi
foreach($request_data as $field => $value) {
$this->invoice->$field = $value;
}
if(! array_keys($request_data, 'date')) {
if(! array_key_exists('date', $request_data)) {
$this->invoice->date = dol_now();
}
/* We keep lines as an array