diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index 5a465f8ad..4019c2ae3 100644 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -267,7 +267,7 @@ class QSO extends CI_Controller { $this->load->model('user_model'); $this->load->model('modes'); $this->load->model('bands'); - $this->load->model('contesting_model'); + $this->load->model('contesting_model'); $this->load->library('form_validation'); diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 894a0aeac..e04f3f57f 100644 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -284,8 +284,8 @@ class Logbook_model extends CI_Model { 'COL_IOTA' => $this->input->post('iota_ref') == null ? '' : trim($this->input->post('iota_ref')), 'COL_DISTANCE' => $this->input->post('distance'), 'COL_FREQ_RX' => $this->parse_frequency($this->input->post('freq_display_rx')), - 'COL_ANT_AZ' => null, - 'COL_ANT_EL' => null, + 'COL_ANT_AZ' => $this->input->post('ant_az') == null ? '' : $this->input->post('ant_az'), + 'COL_ANT_EL' => $this->input->post('ant_el') == null ? '' : $this->input->post('ant_el'), 'COL_A_INDEX' => null, 'COL_AGE' => $qso_age, 'COL_TEN_TEN' => null, @@ -1357,6 +1357,8 @@ class Logbook_model extends CI_Model { 'COL_SRX' => $srx_string, 'COL_CONTEST_ID' => $this->input->post('contest_name'), 'COL_QSL_VIA' => $this->input->post('qsl_via_callsign'), + 'COL_ANT_AZ' => $this->input->post('ant_az') != '' ? $this->input->post('ant_az') : null, + 'COL_ANT_EL' => $this->input->post('ant_el') != '' ? $this->input->post('ant_el') : null, 'station_id' => $stationId, 'COL_STATION_CALLSIGN' => $stationCallsign, 'COL_OPERATOR' => $this->input->post('operator_callsign'), diff --git a/application/views/qso/edit_ajax.php b/application/views/qso/edit_ajax.php index 4e5b50ba6..c739cbfbb 100644 --- a/application/views/qso/edit_ajax.php +++ b/application/views/qso/edit_ajax.php @@ -36,7 +36,7 @@ = __("Notes"); ?> = __("QSL"); ?> = __("Station"); ?> - = __("Contest"); ?> + = __("Contest"); ?> @@ -131,10 +131,10 @@