mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 17:02:34 +01:00
Fix GETPOST use should be avoid in classes
This commit is contained in:
@@ -403,7 +403,7 @@ class Receptions extends DolibarrApi
|
||||
|
||||
// TODO Check the lineid $lineid is a line of object
|
||||
|
||||
$updateRes = $this->reception->deleteline(DolibarrApiAccess::$user, $lineid);
|
||||
$updateRes = $this->reception->deleteLine(DolibarrApiAccess::$user, $lineid);
|
||||
if ($updateRes < 0) {
|
||||
throw new RestException(405, $this->reception->error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user