Fix syntax error

This commit is contained in:
Laurent Destailleur
2019-03-15 20:42:49 +01:00
parent 91f80934f3
commit 7cdfff7263
3 changed files with 3 additions and 3 deletions

View File

@@ -770,7 +770,7 @@ class Orders extends DolibarrApi
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
}
$result = $this->commande->setDraftDolibarrApiAccess::$user, $idwarehouse);
$result = $this->commande->setDraft(DolibarrApiAccess::$user, $idwarehouse);
if ($result == 0) {
throw new RestException(304, 'Nothing done. May be object is already closed');
}