[LoTW][Upload] Make sure Station Profile and Cert DXCCs match
这个提交包含在:
父节点
0fdce42b33
当前提交
7e8be5e266
共有 2 个文件被更改,包括 3 次插入 和 2 次删除
|
|
@ -209,7 +209,7 @@ class Lotw extends CI_Controller {
|
||||||
// Get Certificate Data
|
// Get Certificate Data
|
||||||
$this->load->model('LotwCert');
|
$this->load->model('LotwCert');
|
||||||
$data['station_profile'] = $station_profile;
|
$data['station_profile'] = $station_profile;
|
||||||
$data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign);
|
$data['lotw_cert_info'] = $this->LotwCert->lotw_cert_details($station_profile->station_callsign, $station_profile->station_country);
|
||||||
|
|
||||||
// If Station Profile has no LOTW Cert continue on.
|
// 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)) {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ class LotwCert extends CI_Model {
|
||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
function lotw_cert_details($callsign) {
|
function lotw_cert_details($callsign, $dxcc) {
|
||||||
|
$this->db->where('cert_dxcc', $dxcc);
|
||||||
$this->db->where('callsign', $callsign);
|
$this->db->where('callsign', $callsign);
|
||||||
$query = $this->db->get('lotw_certs');
|
$query = $this->db->get('lotw_certs');
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用