? .DS_Store
? 387448.views.sticky-help.patch
? 692988.views.taxonomy-form-query.patch
? modules/.DS_Store
Index: modules/taxonomy/views_handler_filter_term_node_tid.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/modules/taxonomy/views_handler_filter_term_node_tid.inc,v
retrieving revision 1.8.2.2
diff -u -p -r1.8.2.2 views_handler_filter_term_node_tid.inc
--- modules/taxonomy/views_handler_filter_term_node_tid.inc	22 Jan 2010 01:41:24 -0000	1.8.2.2
+++ modules/taxonomy/views_handler_filter_term_node_tid.inc	22 Jan 2010 22:42:02 -0000
@@ -28,10 +28,10 @@ class views_handler_filter_term_node_tid
     }
 
     if ($this->options['limit']) {
-      // We only do this when the form is displayed so this query doesn't run
-      // unnecessarily just when the object is constructed.
+      // We only do this when the form is displayed.
       if ($this->options['vid'] == 0) {
-        $this->options['vid'] = db_result(db_query('SELECT MIN(vid) FROM {vocabulary} v'));
+        $first_vocabulary = reset($vocabularies);
+        $this->options['vid'] = $first_vocabulary->vid;
       }
 
       $form['vid'] = array(
