Fixed Submode/Mode issue when checking if worked
这个提交包含在:
父节点
3f3df3ea63
当前提交
9f0b60032d
共有 2 个文件被更改,包括 10 次插入 和 4 次删除
|
|
@ -222,7 +222,7 @@ class Logbook extends CI_Controller {
|
||||||
if($type == "SAT") {
|
if($type == "SAT") {
|
||||||
$this->db->where('COL_PROP_MODE', 'SAT');
|
$this->db->where('COL_PROP_MODE', 'SAT');
|
||||||
} else {
|
} else {
|
||||||
$this->db->where('COL_MODE', $mode);
|
$this->db->where('COL_MODE', $this->logbook_model->get_main_mode_from_mode($mode));
|
||||||
$this->db->where('COL_BAND', $band);
|
$this->db->where('COL_BAND', $band);
|
||||||
$this->db->where('COL_PROP_MODE !=','SAT');
|
$this->db->where('COL_PROP_MODE !=','SAT');
|
||||||
|
|
||||||
|
|
@ -263,7 +263,7 @@ class Logbook extends CI_Controller {
|
||||||
if($type == "SAT") {
|
if($type == "SAT") {
|
||||||
$this->db->where('COL_PROP_MODE', 'SAT');
|
$this->db->where('COL_PROP_MODE', 'SAT');
|
||||||
} else {
|
} else {
|
||||||
$this->db->where('COL_MODE', $mode);
|
$this->db->where('COL_MODE', $this->logbook_model->get_main_mode_from_mode($mode));
|
||||||
$this->db->where('COL_BAND', $band);
|
$this->db->where('COL_BAND', $band);
|
||||||
$this->db->where('COL_PROP_MODE !=','SAT');
|
$this->db->where('COL_PROP_MODE !=','SAT');
|
||||||
|
|
||||||
|
|
@ -293,12 +293,13 @@ class Logbook extends CI_Controller {
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('logbooks_model');
|
$CI->load->model('logbooks_model');
|
||||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||||
|
$CI->load->model('logbook_model');
|
||||||
|
|
||||||
if(!empty($logbooks_locations_array)) {
|
if(!empty($logbooks_locations_array)) {
|
||||||
if($type == "SAT") {
|
if($type == "SAT") {
|
||||||
$this->db->where('COL_PROP_MODE', 'SAT');
|
$this->db->where('COL_PROP_MODE', 'SAT');
|
||||||
} else {
|
} else {
|
||||||
$this->db->where('COL_MODE', $mode);
|
$this->db->where('COL_MODE', $this->logbook_model->get_main_mode_from_mode($mode));
|
||||||
$this->db->where('COL_BAND', $band);
|
$this->db->where('COL_BAND', $band);
|
||||||
$this->db->where('COL_PROP_MODE !=','SAT');
|
$this->db->where('COL_PROP_MODE !=','SAT');
|
||||||
|
|
||||||
|
|
@ -338,12 +339,13 @@ class Logbook extends CI_Controller {
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('logbooks_model');
|
$CI->load->model('logbooks_model');
|
||||||
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||||
|
$CI->load->model('logbook_model');
|
||||||
|
|
||||||
if(!empty($logbooks_locations_array)) {
|
if(!empty($logbooks_locations_array)) {
|
||||||
if($type == "SAT") {
|
if($type == "SAT") {
|
||||||
$this->db->where('COL_PROP_MODE', 'SAT');
|
$this->db->where('COL_PROP_MODE', 'SAT');
|
||||||
} else {
|
} else {
|
||||||
$this->db->where('COL_MODE', $mode);
|
$this->db->where('COL_MODE', $this->logbook_model->get_main_mode_from_mode($mode));
|
||||||
$this->db->where('COL_BAND', $band);
|
$this->db->where('COL_BAND', $band);
|
||||||
$this->db->where('COL_PROP_MODE !=','SAT');
|
$this->db->where('COL_PROP_MODE !=','SAT');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3313,6 +3313,10 @@ class Logbook_model extends CI_Model {
|
||||||
return $my_error;
|
return $my_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_main_mode_from_mode($mode) {
|
||||||
|
return ($this->get_main_mode_if_submode($mode) == null ? $mode : $this->get_main_mode_if_submode($mode));
|
||||||
|
}
|
||||||
|
|
||||||
function get_main_mode_if_submode($mode) {
|
function get_main_mode_if_submode($mode) {
|
||||||
$this->db->select('mode');
|
$this->db->select('mode');
|
||||||
$this->db->where('submode', $mode);
|
$this->db->where('submode', $mode);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用