Awards are shown based on the active station profile

This commit is contained in:
Peter Goodhall
2019-09-25 00:05:45 +01:00
parent f638b82005
commit 0a03fa7fbf
6 changed files with 41 additions and 5 deletions

View File

@@ -8,6 +8,11 @@ class Sota extends CI_Model {
}
function get_all() {
$CI =& get_instance();
$CI->load->model('Stations');
$station_id = $CI->Stations->find_active();
$this->db->where("station_id", $station_id);
$this->db->order_by("COL_SOTA_REF", "ASC");
$this->db->where('COL_SOTA_REF !=', '');