Skip to content

Commit

Permalink
Merge pull request #32729 from hregis/fix_18_wrong_update_param
Browse files Browse the repository at this point in the history
FIX wrong update function parameter
  • Loading branch information
eldy authored Jan 21, 2025
2 parents 5433aa8 + 576e70c commit 278b070
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/fourn/class/api_supplier_invoices.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ public function put($id, $request_data = null)
$this->invoice->$field = $value;
}

if ($this->invoice->update($id, DolibarrApiAccess::$user)) {
if ($this->invoice->update(DolibarrApiAccess::$user)) {
return $this->get($id);
}

Expand Down
2 changes: 1 addition & 1 deletion htdocs/ticket/class/api_tickets.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ public function put($id, $request_data = null)
$this->ticket->$field = $value;
}

if ($this->ticket->update($id, DolibarrApiAccess::$user)) {
if ($this->ticket->update(DolibarrApiAccess::$user)) {
return $this->get($id);
}

Expand Down
2 changes: 1 addition & 1 deletion htdocs/zapier/class/api_zapier.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public function post($request_data = null)
$this->hook->$field = $value;
}
if ($this->hook->update($id, DolibarrApiAccess::$user) > 0) {
if ($this->hook->update(DolibarrApiAccess::$user) > 0) {
return $this->get($id);
} else {
throw new RestException(500, $this->hook->error);
Expand Down

0 comments on commit 278b070

Please sign in to comment.