Fixes bug where you couldn't save an editted QSO

pull/1183/head
Peter Goodhall 2021-09-18 17:46:34 +01:00
rodzic f3679cf269
commit ecf19488a6
1 zmienionych plików z 16 dodań i 3 usunięć

Wyświetl plik

@ -471,6 +471,19 @@ class Logbook_model extends CI_Model {
} else {
$txpower = null;
}
if($this->input->post('stx')) {
$stx_string = $this->input->post('stx');
} else {
$stx_string = null;
}
if($this->input->post('srx')) {
$srx_string = $this->input->post('srx');
} else {
$srx_string = null;
}
$data = array(
'COL_TIME_ON' => $this->input->post('time_on'),
'COL_TIME_OFF' => $this->input->post('time_off'),
@ -513,9 +526,9 @@ class Logbook_model extends CI_Model {
'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')),
'COL_STX_STRING' => $this->input->post('stx_string'),
'COL_SRX_STRING' => $this->input->post('srx_string'),
'COL_STX' => $this->input->post('stx'),
'COL_SRX' => $this->input->post('srx'),
'COL_CONTEST_ID' => $this->input->post('contest_name'),
'COL_STX' => $stx_string,
'COL_SRX' => $srx_string,
'COL_CONTEST_ID' => $this->input->post('contest_name'),
'COL_QSL_VIA' => $this->input->post('qsl_via_callsign'),
'station_id' => $this->input->post('station_profile'),
'COL_OPERATOR' => $this->input->post('operator_callsign'),