kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #1159 from AndreasK79/sota_station_logbooks
[SOTA Award] Updated code to support station logbookspull/1162/head
commit
d130940d48
|
@ -9,10 +9,10 @@ class Sota extends CI_Model {
|
|||
|
||||
function get_all() {
|
||||
$CI =& get_instance();
|
||||
$CI->load->model('Stations');
|
||||
$station_id = $CI->Stations->find_active();
|
||||
$CI->load->model('logbooks_model');
|
||||
$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->where('COL_SOTA_REF !=', '');
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue