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
237ceb96
Commit
237ceb96
authored
Sep 16, 2008
by
Richard Mansfield
Browse files
Order institutions first in view owner list
parent
6cfeeed4
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/lib/view.php
View file @
237ceb96
...
...
@@ -1695,7 +1695,7 @@ class View {
GROUP BY ownertype, display, i.name ORDER BY display"
;
$count
=
count_records_sql
(
"SELECT COUNT(*) FROM (
$sql
) q
$qsql
"
,
$ph
);
$data
=
get_records_sql_array
(
"SELECT * FROM (
$sql
) q
$qsql
"
,
$ph
,
$offset
,
$limit
);
$data
=
get_records_sql_array
(
"SELECT * FROM (
$sql
) q
$qsql
ORDER BY ownertype != 'institution', id != 'mahara', ownertype
"
,
$ph
,
$offset
,
$limit
);
foreach
(
$data
as
&
$r
)
{
if
(
$r
->
ownertype
==
'institution'
&&
$r
->
id
==
'mahara'
)
{
...
...
Write
Preview
Markdown
is supported
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