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
acc665a9f1
commit
2dc87509ff
@ -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