From f47051f91b82f2da6b824d295dc8848f1ba71cfd Mon Sep 17 00:00:00 2001 From: phl0 Date: Wed, 7 Sep 2022 13:42:20 +0200 Subject: [PATCH] Also fetch my gridsquare for US counties details --- 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 5c900aa4..e284589f 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3145,7 +3145,8 @@ 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->where_in('station_id', $logbooks_locations_array); + $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); + $this->db->where_in($this->config->item('table_name').'.station_id', $logbooks_locations_array); $this->db->where('COL_STATE', $state); $this->db->where('COL_CNTY', $county); $this->db->where('COL_PROP_MODE !=', 'SAT');