-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)
Description
Bug
When using the PUT /shipments/{id} method of the REST_API, the extra fields contained under array_options does not change after a successfull API call.
Dolibarr Version
20.0.2
Environment PHP
8.2.24
Environment Database
MySQL or MariaDB 10.9.8-MariaDB-1:10.9.8+maria~deb11
Steps to reproduce the behavior and expected behavior
If I try to update a normal field, it works:
Request body:

If I use the PUT /products/{id} method, that also works fine:
Request body:

It looks like the products API handle the array_options:
https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/product/class/api_products.class.php#L397
But the shipment API does not:
https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/expedition/class/api_shipments.class.php#L486
Attached files
No response
Metadata
Metadata
Assignees
Labels
BugThis is a bug (something does not work as expected)This is a bug (something does not work as expected)



