diff --git a/tac_lite.module b/tac_lite.module index 0a6df21..af6359a 100644 --- a/tac_lite.module +++ b/tac_lite.module @@ -243,7 +243,8 @@ function tac_lite_query_term_access_alter(AlterableInterface $query) { $primary_table = ''; $t = $query->getTables(); foreach ($t as $info) { - if (!$info['join type']) { + $table = $info['table']; + if ($table == 'taxonomy_term_data' || $table == 'taxonomy_term_field_data') { $primary_table = $info['alias']; } }