Skip to content
Permalink
Browse files

feat(ui): Add user description of available user in group management …

…page
  • Loading branch information...
sandipbhuyan committed May 30, 2019
1 parent eb9fcb3 commit e514dc6d9f316bec6e25c41ba988848fc8599dca
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/www/ui/page/AdminGroupUsers.php
@@ -106,7 +106,7 @@ protected function handle(Request $request)
'groupMapAction' => $onchange);
$stmt = __METHOD__ . "getUsersWithGroup";
$dbManager->prepare($stmt, "select user_pk, user_name, group_user_member_pk, group_perm
$dbManager->prepare($stmt, "select user_pk, user_name, user_desc, group_user_member_pk, group_perm
FROM users LEFT JOIN group_user_member gum ON gum.user_fk=users.user_pk AND gum.group_fk=$1
ORDER BY user_name");
$result = $dbManager->execute($stmt, array($group_pk));
@@ -118,7 +118,7 @@ protected function handle(Request $request)
if ($row['group_user_member_pk']) {
continue;
}
$otherUsers[$row['user_pk']] = $row['user_name'];
$otherUsers[$row['user_pk']] = !empty($row['user_desc']) ? $row['user_desc']. ' ('. $row['user_name'] .')' : $row['user_name'];
}
$vars['existsOtherUsers'] = count($otherUsers) - 1;

0 comments on commit e514dc6

Please sign in to comment.
You can’t perform that action at this time.