Fixes issue that reassign failed, when col_station_callsign was not given
这个提交包含在:
父节点
f026b8518f
当前提交
589c1c8021
共有 1 个文件被更改,包括 5 次插入 和 1 次删除
|
|
@ -4148,7 +4148,11 @@ function check_if_callsign_worked_in_logbook($callsign, $StationLocationsArray =
|
|||
);
|
||||
|
||||
$this->db->where(array('station_id' => NULL));
|
||||
$this->db->where('col_station_callsign', $station_callsign);
|
||||
if ($station_callsign == '') {
|
||||
$this->db->where(array('col_station_callsign' => NULL));
|
||||
} else {
|
||||
$this->db->where('col_station_callsign', $station_callsign);
|
||||
}
|
||||
$this->db->update($this->config->item('table_name'), $data);
|
||||
if ($this->db->affected_rows() > 0) {
|
||||
return TRUE;
|
||||
|
|
|
|||
正在加载…
在新工单中引用