will allow updating a single Complementary Attribute without specifying all of them that we don't want to change. Similar to # 29115 but just for proposals

This commit is contained in:
Jon Bendtsen 2024-04-01 09:54:18 +02:00
parent 027cf37940
commit 4cdc8f643a

View file

@ -697,7 +697,12 @@ class Proposals extends DolibarrApi
$this->propal->context['caller'] = $request_data['caller'];
continue;
}
if ($field == 'array_options' && is_array($value)) {
foreach ($value as $index => $val) {
$this->propal->array_options[$index] = $val;
}
continue;
}
$this->propal->$field = $value;
}