From 5f484cef90ad8827c8ca056e68856eb9a8562960 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Wed, 4 Mar 2026 08:23:21 +0100 Subject: [PATCH] Fix SAT for map --- application/models/Logbook_model.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 9232e3c22..d0c326929 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -543,6 +543,16 @@ class Logbook_model extends CI_Model { break; case 'CQZone': $this->db->where('COL_CQZ', $searchphrase); + if ($band == 'SAT' && $type == 'CQZone') { + if ($sat != 'All' && $sat != null) { + $this->db->where("COL_SAT_NAME", $sat); + } + if ($orbit != 'All' && $orbit != null) { + $this->db->where("satellite.orbit", $orbit); + } + } else { + $this->db->where("COL_PROP_MODE !=", "SAT"); + } break; case 'ITU': $this->db->where('COL_ITUZ', $searchphrase); @@ -2929,7 +2939,7 @@ class Logbook_model extends CI_Model { // Cache the complete data for each callsign/dxcc/continent (both in-memory and file) // OPTIMIZATION: Batch file cache writes if enabled to reduce I/O operations $file_cache_batch = []; - + // Store worked items with their band/mode data foreach ($call_data as $callsign => $data) { $cache_key = "{$logbook_ids_key}|call|{$callsign}";