From dab215b16d69288abb49fc26086107dc25f0d2fe 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 1e6b1d35a8e..04c2bedeb41 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;