Make sure that VUCC_Grid hasn't been filled in before adding a gridsquare to the COL_gridsquare
这个提交包含在:
		
							父节点
							
								
									f1b5f00bcd
								
							
						
					
					
						当前提交
						c20c9bb59f
					
				
					共有  1 个文件被更改,包括 3 次插入 和 0 次删除
				
			
		|  | @ -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; | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用