From 7970f582e8fbf69b6142fe0300869be770efba5b Mon Sep 17 00:00:00 2001 From: Laurent De Coninck Date: Mon, 30 Oct 2023 17:20:03 +0100 Subject: [PATCH] fix problem on the update of the balloon type service --- admin/vol.php | 3 ++- class/BbcBalloonTypeService.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/vol.php b/admin/vol.php index 7dab09d..363c623 100755 --- a/admin/vol.php +++ b/admin/vol.php @@ -170,7 +170,8 @@ 1, 2, '', - 1, [], + 1, + [], $buyer->id ); ?> diff --git a/class/BbcBalloonTypeService.php b/class/BbcBalloonTypeService.php index 5e4c1e4..f22ad32 100644 --- a/class/BbcBalloonTypeService.php +++ b/class/BbcBalloonTypeService.php @@ -100,7 +100,7 @@ public function update(User $user, $notrigger = false) // Update request $sql = 'UPDATE ' . MAIN_DB_PREFIX . $this->table_element . ' SET'; - $sql .= ' fk_bbc_flight_type = ' . $this->idBalloon . ','; + $sql .= ' fk_bbc_flight_type = ' . $this->idType . ','; $sql .= ' fk_bbc_balloon = ' . $this->idBalloon . ','; $sql .= ' fk_product = ' . $this->fkService ;