Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
cd58cb92
Commit
cd58cb92
authored
Mar 06, 2015
by
webchick
Browse files
Issue
#2444897
by claudiu.cristea: Code cleanup in Views Sql query plugin
parent
ee74fc61
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/views/src/Plugin/views/query/Sql.php
View file @
cd58cb92
...
@@ -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'
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment