trying to fix tx power error when saving

这个提交包含在:
Peter Goodhall 2020-11-19 16:17:34 +00:00
父节点 a4cb766479
当前提交 38e9c18b37
共有 2 个文件被更改,包括 10 次插入1 次删除

查看文件

@ -573,6 +573,12 @@ class Logbook_model extends CI_Model {
} else {
$submode = $this->input->post('mode');
}
if($this->input->post('transmit_power')) {
$txpower = $this->input->post('transmit_power');
} else {
$txpower = null;
}
$data = array(
'COL_TIME_ON' => $this->input->post('time_on'),
'COL_TIME_OFF' => $this->input->post('time_off'),
@ -606,7 +612,7 @@ class Logbook_model extends CI_Model {
'COL_LOTW_QSL_RCVD' => $this->input->post('lotw_recv'),
'COL_IOTA' => $this->input->post('iota_ref'),
'COL_SOTA_REF' => $this->input->post('sota_ref'),
'COL_TX_PWR' => $this->input->post('transmit_power'),
'COL_TX_PWR' => $txpower,
'COL_SIG' => $this->input->post('sig'),
'COL_SIG_INFO' => $this->input->post('sig_info'),
'COL_DARC_DOK' => $this->input->post('darc_dok'),

查看文件

@ -1876,6 +1876,9 @@ $(document).ready(function(){
$(".edit-dialog").modal('hide');
$(".qso-dialog").modal('hide');
<?php if ($this->uri->segment(1) != "search" && $this->uri->segment(2) != "filter") { ?>location.reload();<?php } ?>
},
error: function(xhr, status, error) {
console.log(xhr.responseText);
}
});
}