Commit 47e5636c authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Remove institution sorting from admin user search page (bug #799617)

This change just removes the link allowing you to sort by institution
on admin user search when usersallowedmultipleinstitutions is turned

Change-Id: I975d469ca3ca724ce4fd57e0bf0c427ec4ee361d
Signed-off-by: default avatarRichard Mansfield <>
parent 86f5484d
......@@ -301,6 +301,7 @@ function build_admin_user_search_results($search, $offset, $limit, $sortby, $sor
$cols['institution'] = array(
'name' => get_string('institution'),
'nosort' => get_config('usersallowedmultipleinstitutions'),
'template' => $template,
......@@ -14,6 +14,8 @@
{foreach from=$cols key=f item=c}
{if !$}
{elseif $c.nosort}
<th class="search-results-sort-column{if $f == $sortby} {$sortdir}{/if}">
<a href="{$searchurl}&sortby={$f}&sortdir={if $f == $sortby && $sortdir == 'asc'}desc{else}asc{/if}">{$}</a>
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