Révision 6eb8d15f
Ajouté par Assos Assos il y a presque 10 ans
drupal7/sites/all/modules/views/modules/taxonomy/views_handler_relationship_node_term_data.inc | ||
---|---|---|
75 | 75 |
$query->addJoin($def['type'], 'taxonomy_vocabulary', 'tv', 'td.vid = tv.vid'); |
76 | 76 |
$query->addJoin($def['type'], 'taxonomy_index', 'tn', 'tn.tid = td.tid'); |
77 | 77 |
$query->condition('tv.machine_name', array_filter($this->options['vocabularies'])); |
78 |
$query->addTag('term_access'); |
|
78 |
if (empty($this->query->options['disable_sql_rewrite'])) { |
|
79 |
$query->addTag('term_access'); |
|
80 |
} |
|
79 | 81 |
$query->fields('td'); |
80 | 82 |
$query->fields('tn', array('nid')); |
81 | 83 |
$def['table formula'] = $query; |
Formats disponibles : Unified diff
Weekly update of contrib modules