LotW gridsquare will not be updated if VUCC gridsquares exist.

pull/1111/head
KT3PJ 2021-09-18 12:21:48 -04:00
rodzic 4c9ed28972
commit b46368fe06
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -1436,6 +1436,10 @@ class Logbook_model extends CI_Model {
$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);
$this->db->group_start();
$this->db->where('COL_VUCC_GRIDS');
$this->db->or_where('COL_VUCC_GRIDS', '');
$this->db->group_end();
if(strlen($qsl_gridsquare) > 4) {
$this->db->group_start();
$this->db->where('COL_GRIDSQUARE', "");