Merge pull request #29171 from JonBendtsen/contact_update_single_array_option_element
allow updating contract single Complementary Attribute
This commit is contained in:
commit
c64bba12ee
1 changed files with 6 additions and 0 deletions
|
|
@ -507,6 +507,12 @@ class Contracts extends DolibarrApi
|
|||
$this->contract->context['caller'] = sanitizeVal($request_data['caller'], 'aZ09');
|
||||
continue;
|
||||
}
|
||||
if ($field == 'array_options' && is_array($value)) {
|
||||
foreach ($value as $index => $val) {
|
||||
$this->contract->array_options[$index] = $this->_checkValForAPI($field, $val, $this->contract);;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
$this->contract->$field = $this->_checkValForAPI($field, $value, $this->contract);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue