Skip to content
GitLab
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
b67fd0c2
Commit
b67fd0c2
authored
Nov 28, 2007
by
Richard Mansfield
Browse files
Fix broken sort by institution
parent
170bb96e
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/search/internal/lib.php
View file @
b67fd0c2
...
...
@@ -289,6 +289,10 @@ class PluginSearchInternal extends PluginSearch {
}
}
}
if
(
strpos
(
$sort
,
'institution'
)
===
0
&&
$institutionsearch
==
''
)
{
$institutionsearch
=
' LEFT OUTER JOIN {usr_institution} i ON i.usr = u.id '
;
$sort
=
'i.'
.
$sort
;
}
$count
=
get_field_sql
(
'SELECT COUNT(*) FROM {usr} u '
.
$institutionsearch
.
$where
,
$values
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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