diff --git a/sites/all/modules/contrib/global_filter/global_filter.widgets.inc b/sites/all/modules/contrib/global_filter/global_filter.widgets.inc
index d9e42b4..43676e6 100644
--- a/sites/all/modules/contrib/global_filter/global_filter.widgets.inc
+++ b/sites/all/modules/contrib/global_filter/global_filter.widgets.inc
@@ -209,8 +209,14 @@ function global_filter_create_widget($filter_key, &$form, &$form_state) {
       }
 
       // Simple or links widget, load up the $options.
-      if ($field['type'] == 'taxonomy_term_reference') {
-        $vocabulary_name = $field['settings']['allowed_values'][0]['vocabulary'];
+      if ($field['type'] == 'taxonomy_term_reference' || ($field['type']=='entityreference' && $field['settings']['target_type']=='taxonomy_term')) {
+        if($field['type'] == 'taxonomy_term_reference'){
+        	$vocabulary_name = $field['settings']['allowed_values'][0]['vocabulary'];
+        }	
+		elseif($field['type']=='entityreference' && $field['settings']['target_type']=='taxonomy_term'){
+			$vocabulary_names=array_keys($field['settings']['handler_settings']['target_bundles']);
+			$vocabulary_name = $vocabulary_names[0];
+		}
         // Only show hierarchy depth indicators for select and multi-select.
         $show_depth = drupal_substr($requested_widget, -6) == 'select';
         _global_filter_add_terms($options, $vocabulary_name, $show_depth);
