Fix maxi debug of APIs (clean output fields)

This commit is contained in:
Laurent Destailleur
2017-12-21 16:50:18 +01:00
parent 6a96a9765f
commit aad0da2513
21 changed files with 828 additions and 46 deletions

View File

@@ -2074,7 +2074,6 @@ class Commande extends CommonOrder
*/
function deleteline($user=null, $lineid=0)
{
if ($this->statut == self::STATUS_DRAFT)
{
$this->db->begin();
@@ -2137,7 +2136,8 @@ class Commande extends CommonOrder
}
else
{
return -1;
$this->error='ErrorDeleteLineNotAllowedByObjectStatus';
return -1;
}
}