diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php index b5c236d..5559328 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/relationship/GroupwiseMax.php @@ -260,7 +260,7 @@ function left_query($options) { $tables[$table_name]['alias'] .= $this->subquery_namespace; // Namespace the join on every table. if (isset($tables[$table_name]['condition'])) { - $tables[$table_name]['condition'] = $this->condition_namespace($tables[$table_name]['condition']); + $tables[$table_name]['condition'] = $this->conditionNamespace($tables[$table_name]['condition']); } } // Namespace fields. @@ -314,7 +314,7 @@ function alter_subquery_condition(AlterableInterface $query, &$conditions) { // Skip the #conjunction element. if (is_numeric($condition_id)) { if (is_string($condition['field'])) { - $condition['field'] = $this->condition_namespace($condition['field']); + $condition['field'] = $this->conditionNamespace($condition['field']); } elseif (is_object($condition['field'])) { $sub_conditions =& $condition['field']->conditions(); @@ -329,7 +329,7 @@ function alter_subquery_condition(AlterableInterface $query, &$conditions) { * * Turns 'foo.bar' into 'foo_NAMESPACE.bar'. */ - function condition_namespace($string) { + protected function conditionNamespace($string) { return str_replace('.', $this->subquery_namespace . '.', $string); }