will allow updating 1 contract single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for contracts

This commit is contained in:
Jon Bendtsen 2024-04-01 11:02:29 +02:00
parent 027cf37940
commit 0d4ef406c4

View file

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