Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
444afd9e
Commit
444afd9e
authored
Feb 16, 2009
by
Nigel McNie
Browse files
[UPSTREAM] Sort the institution listing on the admin user search page.
(cherry picked from commit
11a5e031
)
parent
bb2015bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/admin/users/search.php
View file @
444afd9e
...
...
@@ -46,10 +46,10 @@ $offset = param_integer('offset', 0);
$limit
=
param_integer
(
'limit'
,
10
);
if
(
$USER
->
get
(
'admin'
))
{
$institutions
=
get_records_array
(
'institution'
);
$institutions
=
get_records_array
(
'institution'
,
''
,
''
,
'displayname'
);
$search
->
institution
=
param_alphanum
(
'institution'
,
'all'
);
}
else
{
$institutions
=
get_records_select_array
(
'institution'
,
"name IN ('"
.
join
(
"','"
,
array_keys
(
$USER
->
get
(
'admininstitutions'
)))
.
"')"
);
$institutions
=
get_records_select_array
(
'institution'
,
"name IN ('"
.
join
(
"','"
,
array_keys
(
$USER
->
get
(
'admininstitutions'
)))
.
"')"
,
null
,
'displayname'
);
$search
->
institution_requested
=
param_alphanum
(
'institution_requested'
,
'all'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment