diff --git a/core/modules/node/src/Plugin/views/wizard/Node.php b/core/modules/node/src/Plugin/views/wizard/Node.php index fc5aadb..6edcfe5 100644 --- a/core/modules/node/src/Plugin/views/wizard/Node.php +++ b/core/modules/node/src/Plugin/views/wizard/Node.php @@ -241,11 +241,12 @@ protected function buildFilters(&$form, &$form_state) { // Add the "tagged with" filter to the view. // We construct this filter using taxonomy_index.tid (which limits the - // filtering to a specific vocabulary) rather than taxonomy_term_data.name - // (which matches terms in any vocabulary). This is because it is a more - // commonly-used filter that works better with the autocomplete UI, and - // also to avoid confusion with other vocabularies on the site that may - // have terms with the same name but are not used for free tagging. + // filtering to a specific vocabulary) rather than + // taxonomy_term_field_data.name (which matches terms in any vocabulary). + // This is because it is a more commonly-used filter that works better with + // the autocomplete UI, and also to avoid confusion with other vocabularies + // on the site that may have terms with the same name but are not used for + // free tagging. // The downside is that if there *is* more than one vocabulary on the site // that is used for free tagging, the wizard will only be able to make the diff --git a/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php b/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php index 734fda0..c32ff95 100644 --- a/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php +++ b/core/modules/taxonomy/src/Plugin/views/relationship/NodeTermData.php @@ -68,7 +68,7 @@ public function query() { $this->ensureMyTable(); $def = $this->definition; - $def['table'] = 'taxonomy_term_data'; + $def['table'] = 'taxonomy_term_field_data'; if (!array_filter($this->options['vids'])) { $taxonomy_index = $this->query->addTable('taxonomy_index', $this->relationship); @@ -85,7 +85,7 @@ public function query() { $def['type'] = empty($this->options['required']) ? 'LEFT' : 'INNER'; $def['adjusted'] = TRUE; - $query = db_select('taxonomy_term_data', 'td'); + $query = db_select('taxonomy_term_field_data', 'td'); $query->addJoin($def['type'], 'taxonomy_index', 'tn', 'tn.tid = td.tid'); $query->condition('td.vid', array_filter($this->options['vids'])); $query->condition('td.default_langcode', 1); @@ -100,7 +100,7 @@ public function query() { // use a short alias for this: $alias = $def['table'] . '_' . $this->table; - $this->alias = $this->query->addRelationship($alias, $join, 'taxonomy_term_data', $this->relationship); + $this->alias = $this->query->addRelationship($alias, $join, 'taxonomy_term_field_data', $this->relationship); } } diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index 56ec514..09c7e53 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -455,9 +455,9 @@ function taxonomy_term_load_children($tid) { * The number of levels of the tree to return. Leave NULL to return all levels. * @param $load_entities * If TRUE, a full entity load will occur on the term objects. Otherwise they - * are partial objects queried directly from the {taxonomy_term_data} table to - * save execution time and memory consumption when listing large numbers of - * terms. Defaults to FALSE. + * are partial objects queried directly from the {taxonomy_term_field_data} + * table to save execution time and memory consumption when listing large + * numbers of terms. Defaults to FALSE. * * @return * An array of all term objects in the tree. Each term object is extended