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)
This commit is contained in:
diversity-co-uk 2019-01-08 12:31:21 +01:00 committed by Laurent Destailleur
parent acc665a9f1
commit 2dc87509ff

View File

@ -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;