fixing PUT request for donation update
This commit is contained in:
parent
67cab8c1f2
commit
f81136231a
@ -302,7 +302,7 @@ class Donations extends DolibarrApi
|
||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||
}
|
||||
|
||||
$result = $this->don->valid(DolibarrApiAccess::$user, $idwarehouse, $notrigger);
|
||||
$result = $this->don->valid_promesse($id, DolibarrApiAccess::$user->id, $notrigger);
|
||||
if ($result == 0) {
|
||||
throw new RestException(304, 'Error nothing done. May be object is already validated');
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user