mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-31 06:04:54 +01:00
will allow updating 1 invoices single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for invoices
This commit is contained in:
@@ -671,7 +671,12 @@ class Invoices extends DolibarrApi
|
||||
$this->invoice->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($field == 'array_options' && is_array($value)) {
|
||||
foreach ($value as $index => $val) {
|
||||
$this->invoice->array_options[$index] = $val;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
$this->invoice->$field = $value;
|
||||
|
||||
// If cond reglement => update date lim reglement
|
||||
|
||||
Reference in New Issue
Block a user