Commit 05aafb1e authored by Richard Mansfield's avatar Richard Mansfield Committed by Nigel McNie
Browse files

Use institution displayname

parent 13fcc136
......@@ -181,6 +181,7 @@ function build_admin_user_search_results($search) {
range(max($range, $lastpage-$range), $lastpage)));
$smarty->assign_by_ref('results', $results);
$smarty->assign_by_ref('pagenumbers', $pagenumbers);
$smarty->assign_by_ref('institutions', get_records_assoc('institution', '', '', '', 'name,displayname'));
return $smarty->fetch('admin/users/resulttable.tpl');
}
......
......@@ -18,7 +18,7 @@
<td><a href="{$WWWROOT}user/view.php?id={$r.id}">{$r.username}</a></td>
<td>{$r.firstname} {$r.lastname}</td>
<td>{$r.email}</td>
<td>{$r.institution}</td>
<td>{$institutions[$r.institution]->displayname}</td>
<td><a class="suspend-user-link" href="{$WWWROOT}admin/users/suspend.php?id={$r.id}">{str tag=suspenduser section=admin}</a></td>
</tr>
{/foreach}
......
Supports Markdown
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