bugfixe : i18n was filtrering to much terms with taxonomy_get_tree
fixed in materio_taxonomy module with query alter
This commit is contained in:
@@ -708,6 +708,8 @@ function materio_search_api_advanced_search_form($form, &$form_state){
|
||||
);
|
||||
|
||||
foreach ($vocabularies as $vid) {
|
||||
// dsm($vid, "vid");
|
||||
|
||||
$voc = taxonomy_vocabulary_load($vid);
|
||||
// dsm($voc, 'voc');
|
||||
|
||||
@@ -717,14 +719,13 @@ function materio_search_api_advanced_search_form($form, &$form_state){
|
||||
'#tree' => true,
|
||||
);
|
||||
|
||||
$tree = taxonomy_get_tree($vid, 0, 1);
|
||||
$tree = taxonomy_get_tree($vid, 0, 1, TRUE);
|
||||
// dsm($tree, 'tree');
|
||||
|
||||
if(!count($tree))
|
||||
continue;
|
||||
|
||||
foreach ($tree as $term) {
|
||||
$term = taxonomy_term_load($term->tid);
|
||||
// dsm($term, "term");
|
||||
|
||||
$children = taxonomy_get_children($term->tid, $vid);
|
||||
|
||||
Reference in New Issue
Block a user