From 6272e4aaa7e3dc8a9ac3deb3efe4da474425883b Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 2 Mar 2022 17:14:04 +0100 Subject: [PATCH] Also get station_gridsqare for gridsquare map --- 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 2cabf860..1aa0a144 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -257,6 +257,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'); switch ($type) { case 'DXCC': $this->db->where('COL_COUNTRY', $searchphrase); @@ -286,7 +287,7 @@ class Logbook_model extends CI_Model { break; } - $this->db->where_in('station_id', $logbooks_locations_array); + $this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array); if ($band != 'All') { if($band != "SAT") {