From 12de10f52aed190c8db00a4d045606a04b200316 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 29 Jul 2025 18:38:56 +0200 Subject: [PATCH] Delete oqrs line removes from QSL queue --- application/models/Oqrs_model.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/models/Oqrs_model.php b/application/models/Oqrs_model.php index 0ed0b672a..3f0858cc5 100644 --- a/application/models/Oqrs_model.php +++ b/application/models/Oqrs_model.php @@ -192,6 +192,14 @@ class Oqrs_model extends CI_Model { } function delete_oqrs_line($id) { + $sql = 'update ' . $this->config->item('table_name') . ' set COL_QSL_SENT = "N", COL_QSLSDATE = "", COL_QSL_SENT_VIA = "" + where COL_PRIMARY_KEY = (select oqrs.qsoid from oqrs join station_profile on station_profile.station_id = oqrs.station_id where oqrs.id = ? and station_profile.user_id = ?)'; + $binding = [$id, $this->session->userdata('user_id')]; + + $this->db->query($sql, $binding); + + $binding = []; + $binding = [$id, $this->session->userdata('user_id')]; $sql = '