You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Request body:
Response body:
If I try to update a normal field, it works:
Request body:
Response body:
If I use the PUT /products/{id} method, that also works fine:
Request body:
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
Request body:
Response body:
If I try to update a normal field, it works:
Request body:
Response body:
If I use the
PUT /products/{id}
method, that also works fine:Request body:
Response 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
The text was updated successfully, but these errors were encountered: