diff --git www/sites/all/modules/contrib/hierarchical_select/modules/hs_taxonomy_views_handler_filter_term_node_tid.inc www/sites/all/modules/contrib/hierarchical_select/modules/hs_taxonomy_views_handler_filter_term_node_tid.inc index 3561018..0ad7e71 100644 --- www/sites/all/modules/contrib/hierarchical_select/modules/hs_taxonomy_views_handler_filter_term_node_tid.inc +++ www/sites/all/modules/contrib/hierarchical_select/modules/hs_taxonomy_views_handler_filter_term_node_tid.inc @@ -32,7 +32,17 @@ class hs_taxonomy_views_handler_filter_term_node_tid extends views_handler_filte } function value_form(&$form, &$form_state) { - $vocabulary = taxonomy_vocabulary_load($this->options['vid']); + if ($this->options['limit_by'] == 'module') { + foreach(taxonomy_get_vocabularies() as $vid => $vocab) { + if ($vocab->module == $this->options['module']) { + $vocabulary = $vocab; + break; + } + } + } + else { + $vocabulary = taxonomy_vocabulary_load($this->options['vid']); + } $view_name = $this->view->name; $filter_id = $this->options['id']; $display_id = _hs_taxonomy_views_get_display_id_for_filter($this->view, $filter_id);