diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index ab8111ee..bf57c479 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -930,6 +930,11 @@ class Logbook extends CI_Controller { $this->load->model('logbook_model'); $data['grid_worked'] = $this->logbook_model->check_if_grid_worked_in_logbook(strtoupper(substr($data['callsign']['gridsquare'],0,4)), 0, $this->session->userdata('user_default_band')); } + if (isset($data['callsign']['dxcc'])) { + $this->load->model('logbook_model'); + $entity = $this->logbook_model->get_entity($data['callsign']['dxcc']); + $data['callsign']['dxcc_name'] = $entity['name']; + } if (isset($data['callsign']['error'])) { $data['error'] = $data['callsign']['error']; } @@ -954,6 +959,11 @@ class Logbook extends CI_Controller { $this->load->model('logbook_model'); $data['grid_worked'] = $this->logbook_model->check_if_grid_worked_in_logbook(strtoupper(substr($data['callsign']['gridsquare'],0,4)), 0, $this->session->userdata('user_default_band')); } + if (isset($data['callsign']['dxcc'])) { + $this->load->model('logbook_model'); + $entity = $this->logbook_model->get_entity($data['callsign']['dxcc']); + $data['callsign']['dxcc_name'] = $entity['name']; + } if (isset($data['callsign']['error'])) { $data['error'] = $data['callsign']['error']; } diff --git a/application/views/search/result.php b/application/views/search/result.php index 7c15a474..a7d62863 100644 --- a/application/views/search/result.php +++ b/application/views/search/result.php @@ -13,18 +13,18 @@