Also get station_gridsqare for gridsquare map

This commit is contained in:
phl0 2022-03-02 17:14:04 +01:00
parent 0e1fdeac55
commit 6272e4aaa7
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A

View File

@ -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") {