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

This commit is contained in:
Jon Bendtsen 2024-04-01 11:35:57 +02:00
parent 027cf37940
commit f873f9aa65

View file

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