Make sure that VUCC_Grid hasn't been filled in before adding a gridsquare to the COL_gridsquare

这个提交包含在:
Peter Goodhall 2021-03-31 15:41:11 +01:00
父节点 f1b5f00bcd
当前提交 c20c9bb59f

查看文件

@ -2178,6 +2178,9 @@ class Logbook_model extends CI_Model {
// check which to update - records with no Gridsquare or all records // check which to update - records with no Gridsquare or all records
$this->db->where("COL_GRIDSQUARE is NULL or COL_GRIDSQUARE = ''"); $this->db->where("COL_GRIDSQUARE is NULL or COL_GRIDSQUARE = ''");
$where = "(COL_GRIDSQUARE is NULL or COL_GRIDSQUARE = '') AND (COL_VUCC_GRIDS is NULL or COL_VUCC_GRIDS = '')";
$this->db->where($where);
$r = $this->db->get($this->config->item('table_name')); $r = $this->db->get($this->config->item('table_name'));
$count = 0; $count = 0;