diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index dae87a32..9799d086 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -225,10 +225,10 @@ class Lotw extends CI_Controller { // Get Certificate Data $this->load->model('LotwCert'); $data['station_profile'] = $station_profile; - $data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_country); + $data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_dxcc); // If Station Profile has no LOTW Cert continue on. - if(!isset($data['lotw_cert_info']->cert_dxcc)) { + if(!isset($data['lotw_cert_info']->cert_dxcc_id)) { continue; } @@ -244,9 +244,6 @@ class Lotw extends CI_Controller { continue; } - $this->load->model('Dxcc'); - $data['station_profile_dxcc'] = $this->Dxcc->lookup_country($data['lotw_cert_info']->cert_dxcc); - // Get QSOs $this->load->model('Logbook_model'); diff --git a/application/models/LotwCert.php b/application/models/LotwCert.php index 28862ff0..2fbd8f5f 100644 --- a/application/models/LotwCert.php +++ b/application/models/LotwCert.php @@ -22,7 +22,7 @@ class LotwCert extends CI_Model { } function lotw_cert_details($callsign, $dxcc) { - $this->db->where('cert_dxcc', $dxcc); + $this->db->where('cert_dxcc_id', $dxcc); $this->db->where('callsign', $callsign); $query = $this->db->get('lotw_certs'); diff --git a/application/views/lotw_views/adif_views/adif_export.php b/application/views/lotw_views/adif_views/adif_export.php index beae7f16..2d86d8a9 100644 --- a/application/views/lotw_views/adif_views/adif_export.php +++ b/application/views/lotw_views/adif_views/adif_export.php @@ -17,7 +17,7 @@ $cert2 = str_replace("-----END CERTIFICATE-----", "", $cert1); 1 callsign); ?>>callsign; ?> -adif); ?>>adif; ?> +cert_dxcc_id); ?>>cert_dxcc_d; ?> station_gridsquare)) { ?>station_gridsquare); ?>>station_gridsquare; ?>