From 34e09315cce619013b93c2527f47b360f1ed2a29 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Oct 2017 15:35:51 +0200 Subject: [PATCH] Code comment --- htdocs/commande/class/api_orders.class.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php index 02f764ec0ba..cec9e5dc8f7 100644 --- a/htdocs/commande/class/api_orders.class.php +++ b/htdocs/commande/class/api_orders.class.php @@ -507,12 +507,6 @@ class Orders extends DolibarrApi * @url POST {id}/close * * @return array - * FIXME An error 403 is returned if the request has an empty body. - * Error message: "Forbidden: Content type `text/plain` is not supported." - * Workaround: send this in the body - * { - * "notrigger": 0 - * } */ function close($id, $notrigger=0) { @@ -538,9 +532,9 @@ class Orders extends DolibarrApi return array( 'success' => array( - 'code' => 200, - 'message' => 'Order closed (Ref='.$this->commande->ref.')' - ) + 'code' => 200, + 'message' => 'Order closed (Ref='.$this->commande->ref.')' + ) ); }