diff --git a/lib/Views/taxonomy/Plugin/views/relationship/NodeTermData.php b/lib/Views/taxonomy/Plugin/views/relationship/NodeTermData.php index 8007e505907b1d7623d529bc746000622fba66f5..d6b30da8f39a2c83686963d9880f32f669326cae 100644 --- a/lib/Views/taxonomy/Plugin/views/relationship/NodeTermData.php +++ b/lib/Views/taxonomy/Plugin/views/relationship/NodeTermData.php @@ -71,8 +71,8 @@ function query() { $def['table'] = 'taxonomy_term_data'; if (!array_filter($this->options['vocabularies'])) { - $term_node = $this->query->add_table('taxonomy_index', $this->relationship); - $def['left_table'] = 'taxonomy_index'; + $taxonomy_index = $this->query->add_table('taxonomy_index', $this->relationship); + $def['left_table'] = $taxonomy_index; $def['left_field'] = 'tid'; $def['field'] = 'tid'; $def['type'] = empty($this->options['required']) ? 'LEFT' : 'INNER';