mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Fix simple search result
This commit is contained in:
@@ -918,10 +918,12 @@ class Logbook extends CI_Controller {
|
||||
}
|
||||
|
||||
function querydb($id) {
|
||||
$this->db->select('*, satellite.displayname AS sat_displayname');
|
||||
$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', 'left outer');
|
||||
$this->db->join('lotw_users', 'lotw_users.callsign = '.$this->config->item('table_name').'.col_call', 'left outer');
|
||||
$this->db->join('satellite', 'satellite.name = '.$this->config->item('table_name').'.COL_SAT_NAME', 'left outer');
|
||||
$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);
|
||||
|
||||
Reference in New Issue
Block a user