Commit 44a4ad9b authored by merlinofchaos's avatar merlinofchaos

Fix node::term_data relationship which was not relationship safe.

parent b5589d99
......@@ -259,7 +259,14 @@ class views_query {
return FALSE;
}
return $this->queue_table($table, $relationship, $this->adjust_join($join, $relationship), $alias);
if (!$join) {
$join = $this->get_join_data($table, $this->relationships[$relationship]['base']);
}
$join = $this->adjust_join($join, $relationship);
dsm($join);
return $this->queue_table($table, $relationship, $join, $alias);
}
/**
......
......@@ -44,7 +44,7 @@ class views_handler_relationship_node_term_data extends views_handler_relationsh
if (!empty($this->options['required']) || !array_filter($this->options['vids'])) {
$term_node = $this->query->add_table('term_node', $this->relationship);
$def['left_table'] = 'term_node';
$def['left_table'] = $term_node;
$def['left_field'] = 'tid';
$def['field'] = 'tid';
if (!empty($this->options['required'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment