Skip to content

Commit

Permalink
Update api_orders.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Nov 14, 2017
1 parent bf05a0b commit 4212000
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/commande/class/api_orders.class.php
Expand Up @@ -493,10 +493,10 @@ function validate($id, $idwarehouse=0, $notrigger=0)

$result = $this->commande->valid(DolibarrApiAccess::$user, $idwarehouse, $notrigger);
if ($result == 0) {
throw new RestException(500, 'Error nothing done. May be object is already validated');
throw new RestException(304, 'Error nothing done. May be object is already validated');
}
if ($result < 0) {
throw new RestException(304, 'Error when validating Order: '.$this->commande->error);
throw new RestException(500, 'Error when validating Order: '.$this->commande->error);
}
$result = $this->commande->fetch($id);
if( ! $result ) {
Expand Down

0 comments on commit 4212000

Please sign in to comment.