summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--data_taxonomy/views/data_taxonomy.views.inc6
2 files changed, 7 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 5b12fc6..079524a 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -3,6 +3,7 @@
Data 6.x 1.0 xxxxxxxxxxxxxxxxxxxx
---------------------------------
+- #895368 David Goode: data_taxonomy - term_data join for enabled data tables.
- #693056 David Goode: data_taxonomy - don't override existing relationships.
- #866476 David Goode: Fix notice with CTools 1.7 upgrade.
diff --git a/data_taxonomy/views/data_taxonomy.views.inc b/data_taxonomy/views/data_taxonomy.views.inc
index 22bc20a..b69ca0f 100644
--- a/data_taxonomy/views/data_taxonomy.views.inc
+++ b/data_taxonomy/views/data_taxonomy.views.inc
@@ -59,6 +59,12 @@ function data_taxonomy_views_data() {
'left_field' => $meta['data_taxonomy']['id'],
'field' => 'id',
);
+ // allow term data to join directly to affected data tables
+ $data['term_data']['table']['join'][$table->get('name')] = array(
+ 'left_table' => 'data_taxonomy',
+ 'left_field' => 'tid',
+ 'field' => 'tid',
+ );
// don't want to overwrite any other relationships this might have...
$data[$table->get('name')]['data_taxonomy_'. $meta['data_taxonomy']['id']]['relationship'] = array(
'title' => t('Term tid.'),