Skip to content
Snippets Groups Projects
Commit 0c2df09c authored by Peter Rotich's avatar Peter Rotich
Browse files

Define sort fields - change staff sorting to match display

parent 40a50a0c
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class OverviewReportAjaxAPI extends AjaxController {
"dept" => array(
"table" => DEPT_TABLE,
"pk" => "dept_id",
"sort" => '1',
"sort" => 'T1.dept_name',
"fields" => 'T1.dept_name',
"headers" => array('Department'),
"filter" => ('T1.dept_id IN ('.implode(',', db_input($thisstaff->getDepts())).')')
......@@ -66,8 +66,8 @@ class OverviewReportAjaxAPI extends AjaxController {
"staff" => array(
"table" => STAFF_TABLE,
"pk" => 'staff_id',
"sort" => 'T1.lastname, T1.firstname',
"fields" => "CONCAT_WS(' ', T1.firstname, T1.lastname)",
"sort" => 'name',
"fields" => "CONCAT_WS(' ', T1.firstname, T1.lastname) as name",
"headers" => array('Staff Member'),
"filter" =>
('T1.staff_id=S1.staff_id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment