[SOTA Award] Updated code to support station logbooks
这个提交包含在:
父节点
a6422fa341
当前提交
365e79c384
共有 1 个文件被更改,包括 7 次插入 和 7 次删除
|
|
@ -9,10 +9,10 @@ class Sota extends CI_Model {
|
||||||
|
|
||||||
function get_all() {
|
function get_all() {
|
||||||
$CI =& get_instance();
|
$CI =& get_instance();
|
||||||
$CI->load->model('Stations');
|
$CI->load->model('logbooks_model');
|
||||||
$station_id = $CI->Stations->find_active();
|
$logbooks_locations_array = $CI->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
|
||||||
|
|
||||||
$this->db->where("station_id", $station_id);
|
$this->db->where_in("station_id", $logbooks_locations_array);
|
||||||
$this->db->order_by("COL_SOTA_REF", "ASC");
|
$this->db->order_by("COL_SOTA_REF", "ASC");
|
||||||
$this->db->where('COL_SOTA_REF !=', '');
|
$this->db->where('COL_SOTA_REF !=', '');
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用