When updating DXCC out of LoTW-cfm update country as well

This commit is contained in:
int2001
2025-03-07 06:36:56 +00:00
parent 8b4957e593
commit 69cdbe6a4f
2 changed files with 12 additions and 2 deletions

View File

@@ -592,7 +592,13 @@ class Lotw extends CI_Controller {
$dxcc = "";
}
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $record['station_callsign'],$qso_id4lotw, $station_ids, $dxcc, $ant_path);
if (isset($record['country'])) {
$country = $record['country'];
} else {
$country = "";
}
$lotw_status = $this->logbook_model->lotw_update($time_on, $record['call'], $record['band'], $qsl_date, $record['qsl_rcvd'], $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $record['station_callsign'],$qso_id4lotw, $station_ids, $dxcc, $country, $ant_path);
$table .= "<tr>";
$table .= "<td>".$record['station_callsign']."</td>";

View File

@@ -3727,7 +3727,7 @@ class Logbook_model extends CI_Model {
}
}
function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $station_callsign, $qsoid, $station_ids, $dxcc = null, $ant_path = null) {
function lotw_update($datetime, $callsign, $band, $qsl_date, $qsl_status, $state, $qsl_gridsquare, $qsl_vucc_grids, $iota, $cnty, $cqz, $ituz, $station_callsign, $qsoid, $station_ids, $country = null, $dxcc = null, $ant_path = null) {
$data = array(
'COL_LOTW_QSLRDATE' => $qsl_date,
@@ -3753,6 +3753,10 @@ class Logbook_model extends CI_Model {
$data['COL_DXCC'] = $dxcc;
}
if (($country ?? '') != '') {
$data['COL_COUNTRY'] = $country;
}
if ($ituz != "") {
$data['COL_ITUZ'] = $ituz;
}