Merge pull request #29169 from JonBendtsen/invoice_update_single_array_option_element
allow updating invoice single Complementary Attribute
This commit is contained in:
commit
8eaf0e86ab
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue