mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
sort logbook and station list by name
This commit is contained in:
@@ -11,6 +11,7 @@ class Logbooks_model extends CI_Model {
|
||||
|
||||
function show_all() {
|
||||
$this->db->where('user_id', $this->session->userdata('user_id'));
|
||||
$this->db->order_by('logbook_name');
|
||||
return $this->db->get('station_logbooks');
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,8 @@ class Stations extends CI_Model {
|
||||
$this->db->join($this->config->item('table_name'),'station_profile.station_id = '.$this->config->item('table_name').'.station_id','left');
|
||||
$this->db->group_by('station_profile.station_id');
|
||||
$this->db->where('station_profile.user_id', $this->session->userdata('user_id'));
|
||||
$this->db->or_where('station_profile.user_id =', NULL);
|
||||
$this->db->or_where('station_profile.user_id =', NULL);
|
||||
$this->db->order_by('station_profile.station_profile_name');
|
||||
return $this->db->get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user