Commit cd58cb92 authored by webchick's avatar webchick

Issue #2444897 by claudiu.cristea: Code cleanup in Views Sql query plugin

parent ee74fc61
......@@ -1232,7 +1232,7 @@ public function query($get_count = FALSE) {
if (count($this->having)) {
$this->hasAggregate = TRUE;
}
elseif ($this->hasAggregate == FALSE) {
elseif (!$this->hasAggregate) {
// Allow 'GROUP BY' even no aggregation function has been set.
$this->hasAggregate = $this->view->display_handler->getOption('group_by');
}
......
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