From 2dc87509ff32d72738a0d24166eb6f91809f40ee Mon Sep 17 00:00:00 2001 From: diversity-co-uk Date: Tue, 8 Jan 2019 12:31:21 +0100 Subject: [PATCH] Fix Invoice PUT, remove extra parameter The first parameter is expected to be the user. The $id of the invoice is already contained in $this See facture.class.php 1610: function update(User $user, $notrigger=0) --- htdocs/compta/facture/class/api_invoices.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/api_invoices.class.php b/htdocs/compta/facture/class/api_invoices.class.php index 5075d9d8cb7..6fe44440ff5 100644 --- a/htdocs/compta/facture/class/api_invoices.class.php +++ b/htdocs/compta/facture/class/api_invoices.class.php @@ -454,7 +454,7 @@ class Invoices extends DolibarrApi } } - if($this->invoice->update($id, DolibarrApiAccess::$user)) + if($this->invoice->update(DolibarrApiAccess::$user)) return $this->get($id); return false;