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 GitHub
parent 1e79781cba
commit dab215b16d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;