kopia lustrzana https://github.com/magicbug/Cloudlog
Make sure that VUCC_Grid hasn't been filled in before adding a gridsquare to the COL_gridsquare
rodzic
f1b5f00bcd
commit
c20c9bb59f
|
@ -2178,6 +2178,9 @@ class Logbook_model extends CI_Model {
|
|||
// check which to update - records with no Gridsquare or all records
|
||||
$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'));
|
||||
|
||||
$count = 0;
|
||||
|
|
Ładowanie…
Reference in New Issue