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

This commit is contained in:
Jon Bendtsen
2024-04-01 10:08:02 +02:00
parent 027cf37940
commit d12f90b4d3

View File

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