diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 20e91fd4696..f8b732e4b5e 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1197,7 +1197,7 @@ class Thirdparties extends DolibarrApi $notification = new Notify($this->db); // @phan-suppress-next-line PhanPluginSuspiciousParamPosition - $notification->fetch($notification_id, $id, -1, ''); + $notification->fetch($notification_id, $id); if ($notification->socid != $id) { throw new RestException(403, "Not allowed due to bad consistency of input data");