From 83ae7f3bd449d631be2bdb031c4123bf7496b0f0 Mon Sep 17 00:00:00 2001 From: Andreas <6977712+AndreasK79@users.noreply.github.com> Date: Fri, 30 Dec 2022 10:11:38 +0100 Subject: [PATCH] [OQRS] Fixed search not showing all QSOs --- application/models/Oqrs_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Oqrs_model.php b/application/models/Oqrs_model.php index c18f15b46..0cc875642 100644 --- a/application/models/Oqrs_model.php +++ b/application/models/Oqrs_model.php @@ -50,7 +50,7 @@ class Oqrs_model extends CI_Model { $callsign = $this->security->xss_clean($callsign); $sql = 'select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode != "SAT"'; - $sql .= ' union select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, "SAT" col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode = "SAT"'; + $sql .= ' union all select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, "SAT" col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode = "SAT"'; $query = $this->db->query($sql);