Skip to content
Snippets Groups Projects
Commit cd58cb92 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent ee74fc61
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -1232,7 +1232,7 @@ public function query($get_count = FALSE) { ...@@ -1232,7 +1232,7 @@ public function query($get_count = FALSE) {
if (count($this->having)) { if (count($this->having)) {
$this->hasAggregate = TRUE; $this->hasAggregate = TRUE;
} }
elseif ($this->hasAggregate == FALSE) { elseif (!$this->hasAggregate) {
// Allow 'GROUP BY' even no aggregation function has been set. // Allow 'GROUP BY' even no aggregation function has been set.
$this->hasAggregate = $this->view->display_handler->getOption('group_by'); $this->hasAggregate = $this->view->display_handler->getOption('group_by');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment