Commit b3b8442f authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1647220: Fix error in Institution statistics when no institution" into 16.04_STABLE

parents fbd3dc4f c5b54934
......@@ -1384,7 +1384,7 @@ function institution_view_stats_table($limit, $offset, &$institutiondata) {
$viewdata = get_records_sql_assoc(
"SELECT
v.id, v.title, v.owner, v.group, v.institution, v.visits, v.type, v.ownerformat, v.urlid
v.id, v.title, v.owner, v.group, v.institution, v.visits, v.type, v.ownerformat, v.urlid, v.template
FROM {view} v
WHERE v.id IN (" . join(',', array_fill(0, $institutiondata['views'], '?')) . ") AND v.type != ?
ORDER BY v.visits DESC, v.title, v.id",
......
Markdown is supported
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