Commit 2b106fcb authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix group views query for mysql

parent 6bbd3b72
......@@ -1532,9 +1532,9 @@ class View {
$viewdata = get_records_sql_array('
SELECT * FROM (
SELECT
DISTINCT ON (v.id)
v.id, v.title, v.description, v.owner, v.ownerformat, v.group
' . $from . $where . '
GROUP BY v.id, v.title, v.description, v.owner, v.ownerformat, v.group
) a
ORDER BY a.title, a.id ',
$ph, $offset, $limit
......
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