From 998dca9b9f9eda09b39a4a1a378fdd28ec7edc77 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Aug 2018 02:05:37 +0200 Subject: [PATCH] Update api_thirdparties.class.php --- htdocs/societe/class/api_thirdparties.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index a4bd7d4a5c3..3e39768ada9 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1128,8 +1128,7 @@ class Thirdparties extends DolibarrApi $account = new CompanyBankAccount($this->db); - $account->fetchFromApi($bankaccount_id, $id); - + $account->fetch($bankaccount_id, $id, -1, ''); if($account->socid != $id){ throw new RestException(401);