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}";