From d12f90b4d3540a33b19025b57db1cb4c31d4e5eb Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Mon, 1 Apr 2024 10:08:02 +0200 Subject: [PATCH] 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 --- htdocs/commande/class/api_orders.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php index d70dab85cb7..6881e761a1e 100644 --- a/htdocs/commande/class/api_orders.class.php +++ b/htdocs/commande/class/api_orders.class.php @@ -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; }