From e8e7047931dad877a72f5e532cc06b0333a5d421 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:40:19 +0100 Subject: [PATCH 1/2] [Advanced Logbook] Fix an update error cq/itu zone --- application/views/logbookadvanced/checkresult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/views/logbookadvanced/checkresult.php b/application/views/logbookadvanced/checkresult.php index 2b237ab37..8353786a7 100644 --- a/application/views/logbookadvanced/checkresult.php +++ b/application/views/logbookadvanced/checkresult.php @@ -68,7 +68,7 @@ function check_missing_dxcc($result) { ?> } function check_missing_cq_zones($result) { ?> -
+
count; ?> count > 0) { ?>
From 10a6ff3dd5c115221b1e68551238e20f0a3b3285 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Tue, 23 Dec 2025 14:41:57 +0100 Subject: [PATCH 2/2] Must fix model too --- application/models/Logbookadvanced_model.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/models/Logbookadvanced_model.php b/application/models/Logbookadvanced_model.php index c7f0bce01..3bc5a0704 100644 --- a/application/models/Logbookadvanced_model.php +++ b/application/models/Logbookadvanced_model.php @@ -1259,7 +1259,7 @@ class Logbookadvanced_model extends CI_Model { if ($ids == null) { $sql = "UPDATE ".$this->config->item('table_name')." JOIN dxcc_entities ON ". $this->config->item('table_name').".col_dxcc = dxcc_entities.adif JOIN station_profile ON ". $this->config->item('table_name').".station_id = station_profile.station_id" . " SET " . $this->config->item('table_name').".COL_CQZ = dxcc_entities.cqz" . - " WHERE station_profile.user_id = ? and (" . $this->config->item('table_name').".COL_CQZ IS NULL OR " . $this->config->item('table_name').".COL_CQZ = '')"; + " WHERE station_profile.user_id = ? and " . $this->config->item('table_name') . ".COL_CQZ IS NULL"; $query = $this->db->query($sql, array($this->session->userdata('user_id'))); return $this->db->affected_rows(); @@ -1277,7 +1277,7 @@ class Logbookadvanced_model extends CI_Model { if ($ids == null) { $sql = "UPDATE ".$this->config->item('table_name')." JOIN dxcc_entities ON ". $this->config->item('table_name').".col_dxcc = dxcc_entities.adif JOIN station_profile ON ". $this->config->item('table_name').".station_id = station_profile.station_id" . " SET " . $this->config->item('table_name').".COL_ITUZ = dxcc_entities.ituz" . - " WHERE station_profile.user_id = ? and (" . $this->config->item ('table_name').".COL_ITUZ IS NULL OR " . $this->config->item('table_name').".COL_ITUZ = '')"; + " WHERE station_profile.user_id = ? and " . $this->config->item('table_name') . ".COL_ITUZ IS NULL"; $query = $this->db->query($sql, array($this->session->userdata('user_id'))); return $this->db->affected_rows(); } @@ -1556,7 +1556,7 @@ class Logbookadvanced_model extends CI_Model { $sql = "select count(*) as count from " . $this->config->item('table_name') . " join station_profile on " . $this->config->item('table_name') . ".station_id = station_profile.station_id join dxcc_entities on " . $this->config->item('table_name') . ".col_dxcc = dxcc_entities.adif - where user_id = ? and coalesce(col_cqz, '') = ''"; + where user_id = ? and col_cqz is NULL"; $bindings[] = [$this->session->userdata('user_id')]; @@ -1568,7 +1568,7 @@ class Logbookadvanced_model extends CI_Model { $sql = "select count(*) as count from " . $this->config->item('table_name') . " join station_profile on " . $this->config->item('table_name') . ".station_id = station_profile.station_id join dxcc_entities on " . $this->config->item('table_name') . ".col_dxcc = dxcc_entities.adif - where user_id = ? and coalesce(col_ituz, '') = ''"; + where user_id = ? and col_ituz is NULL"; $bindings[] = [$this->session->userdata('user_id')];