Commit a8fb539c authored by Melissa Draper's avatar Melissa Draper
Browse files

Add preferredname query for group search (bug #661619)



Makes preferred name appear in the groups about view
instead of the first and last names.
Based on Sean Brennan's patch.

Change-Id: I2e4cbc4b93760759fb1cac7c8f82d41345346993
Signed-off-by: default avatarMelissa Draper <melissa@catalyst.net.nz>
parent 026a3542
...@@ -504,7 +504,7 @@ class PluginSearchInternal extends PluginSearch { ...@@ -504,7 +504,7 @@ class PluginSearchInternal extends PluginSearch {
} }
else { // All group members else { // All group members
$select = ' $select = '
u.id, u.firstname, u.lastname, u.username, u.email, u.profileicon, u.id, u.firstname, u.lastname, u.username, u.preferredname, u.email, u.profileicon,
u.staff, ' . db_format_tsfield('gm.ctime', 'jointime') . ', gm.role'; u.staff, ' . db_format_tsfield('gm.ctime', 'jointime') . ', gm.role';
$from = ' $from = '
FROM {usr} u FROM {usr} u
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment