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

8.0.x
webchick 2015-03-06 21:47:30 +11:00
parent ee74fc6114
commit cd58cb92dc
1 changed files with 1 additions and 1 deletions

View File

@ -1232,7 +1232,7 @@ class Sql extends QueryPluginBase {
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');
}