From: Nik Okuntseff Date: Mon, 26 Mar 2018 14:34:22 +0000 (+0000) Subject: Added ordering by name to getUsers. X-Git-Tag: timetracker_1.19-1~933 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d685a57ec1f70438af9aa66ed578a5f6cf4deb00;p=timetracker.git Added ordering by name to getUsers. --- diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 27b90a42..d58a7167 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -269,7 +269,9 @@ class ttUser { if (isset($options['max_rank'])) $where_part .= ' and r.rank <= '.(int)$options['max_rank']; } - $sql = $select_part.$from_part.$left_joins.$where_part; + $order_part = " order by upper(u.name)"; + + $sql = $select_part.$from_part.$left_joins.$where_part.$order_part; $res = $mdb2->query($sql); $user_list = array(); if (is_a($res, 'PEAR_Error')) diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e965d2a5..ab703fb7 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.72.4173 | Copyright © Anuko | +  Anuko Time Tracker 1.17.72.4174 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}