Commit 25d5a9c8 authored by merlinofchaos's avatar merlinofchaos

#134375: (by vhmauery) Postgres fix, adds orderby to groupby if there is already a groupby.

parent d9795de0
......@@ -29,6 +29,7 @@ Views 4.7.x-dev
o #101275: Fixed broken check which is meant to prevent node.nid from appearing twice in a query.
o #126428: (by scott.mclewin) Force single didn't work in all cases.
o #134703: Fixed problem with validation causing valid values to appear invalid (such as in moderate and sticky filters)
o #134375: (by vhmauery) Postgres fix, adds orderby to groupby if there is already a groupby.
New features:
o #105620: (Attempt 2) allow modules to alter views tables + arguments
......
......@@ -411,6 +411,9 @@ class _views_query {
}
$this->add_field($f, $table, $as);
$this->orderby[] = "$as $order";
if ($this->groupby) {
$this->add_groupby($as);
}
}
}
......
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