forked from mirrors/easyappointments
Providers and services are ordered alphabetically (#568).
This commit is contained in:
parent
2321c3b7fc
commit
12f6833ca5
2 changed files with 4 additions and 2 deletions
|
@ -502,7 +502,8 @@ class Providers_Model extends CI_Model {
|
|||
->select('ea_users.*')
|
||||
->from('ea_users')
|
||||
->join('ea_roles', 'ea_roles.id = ea_users.id_roles', 'inner')
|
||||
->where('ea_roles.slug', DB_SLUG_PROVIDER);
|
||||
->where('ea_roles.slug', DB_SLUG_PROVIDER)
|
||||
->order_by('first_name ASC, last_name ASC, email ASC');
|
||||
|
||||
$providers = $this->db->get()->result_array();
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@ class Services_Model extends CI_Model {
|
|||
}
|
||||
}
|
||||
|
||||
// Availabilities type must have the correct value.
|
||||
// Availabilities type must have the correct value.
|
||||
if ($service['availabilities_type'] !== NULL && $service['availabilities_type'] !== AVAILABILITIES_TYPE_FLEXIBLE
|
||||
&& $service['availabilities_type'] !== AVAILABILITIES_TYPE_FIXED)
|
||||
{
|
||||
|
@ -337,6 +337,7 @@ class Services_Model extends CI_Model {
|
|||
'ea_services_providers.id_services = ea_services.id', 'inner')
|
||||
->join('ea_service_categories',
|
||||
'ea_service_categories.id = ea_services.id_service_categories', 'left')
|
||||
->order_by('name ASC')
|
||||
->get()->result_array();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue