Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2024-03-24 05:45:12 +01:00
commit 9530eacfd8

View file

@ -386,7 +386,7 @@ class Shipments extends DolibarrApi
*
* @url DELETE {id}/lines/{lineid}
*
* @return int
* @return array
*
* @throws RestException 401
* @throws RestException 404
@ -410,7 +410,12 @@ class Shipments extends DolibarrApi
$updateRes = $this->shipment->deleteLine(DolibarrApiAccess::$user, $lineid);
if ($updateRes > 0) {
return $this->get($id);
return array(
'success' => array(
'code' => 200,
'message' => 'line ' .$lineid. ' deleted'
)
);
} else {
throw new RestException(405, $this->shipment->error);
}