From dbfbffd6316966b85bae352cea1c03ee376f3560 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 1 Apr 2022 10:38:54 +0200 Subject: [PATCH] Also fetch my square for maps --- application/models/Logbook_model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index a805cad5..e40470ef 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -398,6 +398,7 @@ class Logbook_model extends CI_Model { $CI->load->model('logbooks_model'); $logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook')); + $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); $this->db->where('COL_CALL', $call); if ($band != 'All') { if ($band == 'SAT') { @@ -414,7 +415,7 @@ class Logbook_model extends CI_Model { } } - $this->db->where_in('station_id', $logbooks_locations_array); + $this->db->where_in('station_profile.station_id', $logbooks_locations_array); return $this->db->get($this->config->item('table_name')); }