From bb094405e83f74e8e417efabfd4f12600fafb0b4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 1 Mar 2019 23:27:34 -0700 Subject: [PATCH] Add ability to sort by groups, organizatin and given name. --- core/users/users.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/users/users.php b/core/users/users.php index a411412fb0..49876949ec 100644 --- a/core/users/users.php +++ b/core/users/users.php @@ -95,7 +95,7 @@ $offset = $rows_per_page * $page; //get the users from the database - $sql = "select u.domain_uuid, u.user_uuid, u.username, u.user_enabled, u.contact_organization, u.contact_name_given, u.contact_name_family, u.groups \n"; + $sql = "select u.domain_uuid, u.user_uuid, u.contact_uuid, u.username, u.user_enabled, u.contact_organization, u.contact_name_given, u.contact_name_family, u.groups \n"; $sql .= "from view_users as u \n"; $sql .= "where 1 = 1 \n"; if (!(permission_exists('user_all') && $_GET['show'] == 'all')) { @@ -174,9 +174,9 @@ echo th_order_by('domain_name', $text['label-domain'], $order_by, $order, '', '', $param); } echo th_order_by('username', $text['label-username'], $order_by, $order); - echo "".$text['label-groups']."\n"; - echo "".$text['label-organization']."\n"; - echo "".$text['label-name']."\n"; + echo th_order_by('groups', $text['label-groups'], $order_by, $order, '', '', $param); + echo th_order_by('contact_organization', $text['label-organization'], $order_by, $order, '', '', $param); + echo th_order_by('contact_name_given', $text['label-name'], $order_by, $order, '', '', $param); echo th_order_by('user_enabled', $text['label-enabled'], $order_by, $order, '', '', $param); echo ""; if (permission_exists('user_add')) {