bugfixe : i18n was filtrering to much terms with taxonomy_get_tree

fixed in materio_taxonomy module with query alter
This commit is contained in:
Bachir Soussi Chiadmi
2014-09-16 21:09:06 +08:00
parent 8f54fcd944
commit 0bba2d0657
2 changed files with 53 additions and 4 deletions

View File

@@ -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);