From d67716cc70bc7e779a1d9c4f7a5b52697aa65588 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 6 Mar 2024 11:28:24 +0000 Subject: [PATCH] Do not update, if LOTW_R_DATE is already set to thats received --- application/models/Logbook_model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 80cfb30d6..5de66c6b0 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -3141,6 +3141,10 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray = $data['COL_CLUBLOG_QSO_UPLOAD_STATUS'] = 'M'; } + $this->db->group_start(); + $this->db->where('date_format(COL_LOTW_QSLRDATE, \'%Y-%m-%d %H:%i\') != "'.$qsl_date.'"'); + $this->db->or_where('COL_LOTW_QSLRDATE is null'); + $this->db->group_end(); $this->db->where('date_format(COL_TIME_ON, \'%Y-%m-%d %H:%i\') = "'.$datetime.'"'); $this->db->where('COL_CALL', $callsign); $this->db->where('COL_BAND', $band);