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:
parent
1e79781cba
commit
dab215b16d
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user