Skip to content
Snippets Groups Projects
Commit 9b3a4cbd authored by Chris Gross's avatar Chris Gross
Browse files

7.x-1.8 Release Candidate 3

parent 07274bcf
No related merge requests found
WCM Base 7.x-1.8-rc3, 2018-07-24
--------------------------------
- WCM Base: Added patch to fix duplicate results bug introduced in Views 3.20.
WCM Base 7.x-1.8-rc2, 2018-07-23
--------------------------------
- WCM Base:
......
The following patches have been applied to this project:
- http://drupal.org/files/issues/2018-07-15/mysql-group-by-duplication-workaround-2985178-7.patch
- http://drupal.org/files/issues/views-exposed-sorts-2037469-26.patch
This file was automatically generated by Drush Make (http://drupal.org/project/drush).
......@@ -1214,7 +1214,10 @@ class views_plugin_query_default extends views_plugin_query {
}
// This is a formula, using no tables.
elseif (empty($field['table'])) {
if (!in_array($fieldname, $non_aggregates)) {
if (Database::getConnection()->databaseType() != 'pgsql') {
$non_aggregates[] = $fieldname;
}
elseif (!in_array($fieldname, $non_aggregates)) {
$non_aggregates[] = $fieldname;
}
$placeholders = !empty($field['placeholders']) ? $field['placeholders'] : array();
......@@ -1224,13 +1227,16 @@ class views_plugin_query_default extends views_plugin_query {
elseif ($this->distinct && !in_array($fieldname, $this->groupby)) {
// d7cx: This code was there, apparently needed for PostgreSQL
// $string = db_driver() == 'pgsql' ? "FIRST($string)" : $string;
if (!in_array($string, $non_aggregates)) {
if (Database::getConnection()->databaseType() == 'pgsql' && !in_array($string, $non_aggregates)) {
$non_aggregates[] = $string;
}
$query->addField(!empty($field['table']) ? $field['table'] : $this->base_table, $field['field'], $fieldname);
}
elseif (empty($field['aggregate'])) {
if (!in_array($string, $non_aggregates)) {
if (Database::getConnection()->databaseType() != 'pgsql') {
$non_aggregates[] = $fieldname;
}
elseif (!in_array($string, $non_aggregates)) {
$non_aggregates[] = $string;
}
$query->addField(!empty($field['table']) ? $field['table'] : $this->base_table, $field['field'], $fieldname);
......
......@@ -174,6 +174,7 @@ projects[token_filter][subdir] = contrib
projects[views][version] = 3.20
projects[views][subdir] = contrib
projects[views][patch][2985178] = http://drupal.org/files/issues/2018-07-15/mysql-group-by-duplication-workaround-2985178-7.patch
projects[views][patch][2037469] = http://drupal.org/files/issues/views-exposed-sorts-2037469-26.patch
projects[views_accordion][version] = 1.1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment