When importing ADIF if TX POWER contains anything thats not a number its stripped out.
这个提交包含在:
		
							父节点
							
								
									1f6030f13e
								
							
						
					
					
						当前提交
						2025a33dc2
					
				
					共有  1 个文件被更改,包括 8 次插入 和 1 次删除
				
			
		|  | @ -1079,6 +1079,13 @@ class Logbook_model extends CI_Model { | ||||||
|           $cq_zone = NULL; |           $cq_zone = NULL; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (isset($record['TX_PWR'])){ | ||||||
|  |             $tx_pwr =  filter_var($record['TX_PWR'],FILTER_SANITIZE_NUMBER_INT);; | ||||||
|  |         }else{ | ||||||
|  |             $tx_pwr = NULL; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|          |          | ||||||
|         if (isset($record['call'])){ |         if (isset($record['call'])){ | ||||||
|           $this->db->where('COL_CALL', $record['call']); |           $this->db->where('COL_CALL', $record['call']); | ||||||
|  | @ -1238,7 +1245,7 @@ class Logbook_model extends CI_Model { | ||||||
|                 'COL_TEN_TEN' => (!empty($record['ten_ten'])) ? $record['ten_ten'] : null, |                 'COL_TEN_TEN' => (!empty($record['ten_ten'])) ? $record['ten_ten'] : null, | ||||||
|                 'COL_TIME_ON' => $time_on, |                 'COL_TIME_ON' => $time_on, | ||||||
|                 'COL_TIME_OFF' => $time_off, |                 'COL_TIME_OFF' => $time_off, | ||||||
|                 'COL_TX_PWR' => (!empty($record['tx_pwr'])) ? $record['tx_pwr'] : null, |                 'COL_TX_PWR' => (!empty($tx_pwr)) ? $tx_pwr : null, | ||||||
|                 'COL_UKSMG' => (!empty($record['uksmg'])) ? $record['uksmg'] : '', |                 'COL_UKSMG' => (!empty($record['uksmg'])) ? $record['uksmg'] : '', | ||||||
|                 'COL_USACA_COUNTIES' => (!empty($record['usaca_counties'])) ? $record['usaca_counties'] : '', |                 'COL_USACA_COUNTIES' => (!empty($record['usaca_counties'])) ? $record['usaca_counties'] : '', | ||||||
|                 'COL_VUCC_GRIDS' =>((!empty($record['vucc_grids']))) ? $record['vucc_grids'] : '', |                 'COL_VUCC_GRIDS' =>((!empty($record['vucc_grids']))) ? $record['vucc_grids'] : '', | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用