mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Allow updating distance to 0km in QSO edit rather thank skipping and
keeping the old value for distance
This commit is contained in:
@@ -1669,7 +1669,9 @@ class Logbook_model extends CI_Model {
|
||||
$dclrdate = $qso->COL_DCL_QSLRDATE;
|
||||
}
|
||||
|
||||
if (($this->input->post('distance')) && (is_numeric($this->input->post('distance')))) {
|
||||
if (is_numeric($this->input->post('distance')) && $this->input->post('distance') == 0) {
|
||||
$distance = 0;
|
||||
} elseif (($this->input->post('distance')) && (is_numeric($this->input->post('distance')))) {
|
||||
$distance = $this->input->post('distance');
|
||||
} else {
|
||||
$distance = null;
|
||||
|
||||
Reference in New Issue
Block a user