Remove code to auto-create QSOs upon LoTW matches
这个提交包含在:
父节点
4ef2237ba4
当前提交
5c59e9eddc
共有 2 个文件被更改,包括 6 次插入 和 20 次删除
|
|
@ -498,18 +498,8 @@ class Lotw extends CI_Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$status = $this->logbook_model->import_check($time_on, $record['call'], $record['band'], $record['mode'], $record['station_callsign']);
|
$status = $this->logbook_model->import_check($time_on, $record['call'], $record['band'], $record['mode'], $record['station_callsign']);
|
||||||
$skipNewQso = $this->input->post('importMissing'); // If import missing was checked
|
|
||||||
|
|
||||||
if($status[0] == "No Match" && $skipNewQso != NULL) {
|
if($status[0] == "Found") {
|
||||||
|
|
||||||
$result = $this->logbook_model->import($record, $station_id, NULL, TRUE, NULL, NULL, NULL, true, false); // Create the Entry
|
|
||||||
if ($result == "") {
|
|
||||||
$lotw_status = 'QSO imported';
|
|
||||||
} else {
|
|
||||||
$lotw_status = $result;
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if (isset($record['state'])) {
|
if (isset($record['state'])) {
|
||||||
$state = $record['state'];
|
$state = $record['state'];
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -561,7 +551,11 @@ class Lotw extends CI_Controller {
|
||||||
$table .= "<td>".$qsl_gridsquare."</td>";
|
$table .= "<td>".$qsl_gridsquare."</td>";
|
||||||
$table .= "<td>".$iota."</td>";
|
$table .= "<td>".$iota."</td>";
|
||||||
$table .= "<td>QSO Record: ".$status[0]."</td>";
|
$table .= "<td>QSO Record: ".$status[0]."</td>";
|
||||||
$table .= "<td>LoTW Record: ".$lotw_status."</td>";
|
if($status[0] == "Found") {
|
||||||
|
$table .= "<td>LoTW Record: ".$lotw_status."</td>";
|
||||||
|
} else {
|
||||||
|
$table .= "<td></td>";
|
||||||
|
}
|
||||||
$table .= "</tr>";
|
$table .= "</tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,14 +41,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
<div class="form-group row" style="display: none">
|
|
||||||
<div class="col-md-10">
|
|
||||||
<div class="form-check-inline">
|
|
||||||
<input class="form-check-input" type="checkbox" name="importMissing" value="1" id="importMissing">
|
|
||||||
<label class="form-check-label" for="importMissing"><?php echo lang('lotw_import_missing_qsos_text'); ?></label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<p class="form-text text-muted"><?php echo lang('lotw_report_download_overview_helptext'); ?></p>
|
<p class="form-text text-muted"><?php echo lang('lotw_report_download_overview_helptext'); ?></p>
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用