Skip to content

Commit

Permalink
Added more casting on api/order
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed May 12, 2024
1 parent c157cb2 commit f33c7c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/catalog/controller/api/order.php
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ public function history(): void {
$order_info = $this->model_checkout_order->getOrder($order_id);

if ($order_info) {
$this->model_checkout_order->addHistory($order_id, (int)$this->request->post['order_status_id'], $this->request->post['comment'], $this->request->post['notify'], $this->request->post['override']);
$this->model_checkout_order->addHistory($order_id, (int)$this->request->post['order_status_id'], (string)$this->request->post['comment'], (bool)$this->request->post['notify'], (bool)$this->request->post['override']);

$json['success'] = $this->language->get('text_success');
} else {
Expand Down

0 comments on commit f33c7c8

Please sign in to comment.