From a1651d1a60d7b4b2af8aa9d9d7a993ae5e932820 Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Thu, 5 Mar 2026 08:37:54 +0100 Subject: [PATCH] Fix map re sat --- 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..7ce2cedb6 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -546,6 +546,16 @@ class Logbook_model extends CI_Model { break; case 'ITU': $this->db->where('COL_ITUZ', $searchphrase); + if ($band == 'SAT' && $type == 'ITU') { + 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 'WAS': $this->db->where('COL_STATE', $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}";