From 5c9ec6b6eb855333fd4b8595f200bd2dc10d5644 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 27 Apr 2023 17:07:30 +0200 Subject: [PATCH] Add table join on DXCC entities to search function --- application/controllers/Logbook.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index b02a208a..74d6fe90 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -769,6 +769,7 @@ class Logbook extends CI_Controller { function querydb($id) { $this->db->from($this->config->item('table_name')); $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); + $this->db->join('dxcc_entities', 'dxcc_entities.adif = '.$this->config->item('table_name').'.COL_DXCC'); $this->db->group_start(); $this->db->like(''.$this->config->item('table_name').'.COL_CALL', $id); $this->db->or_like(''.$this->config->item('table_name').'.COL_GRIDSQUARE', $id);