? taxonomy_autocomplete_2.patch
? sites/default/files
? sites/default/settings.php
Index: modules/taxonomy/taxonomy.pages.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy/taxonomy.pages.inc,v
retrieving revision 1.55
diff -u -p -r1.55 taxonomy.pages.inc
--- modules/taxonomy/taxonomy.pages.inc	6 Oct 2010 13:38:40 -0000	1.55
+++ modules/taxonomy/taxonomy.pages.inc	12 Oct 2010 05:45:22 -0000
@@ -92,7 +92,9 @@ function taxonomy_autocomplete($field_na
     // Part of the criteria for the query come from the field's own settings.
     $vids = array();
     foreach ($field['settings']['allowed_values'] as $tree) {
-      $vids[] = $tree['vid'];
+      if ($vocabulary = taxonomy_vocabulary_machine_name_load($tree['vocabulary'])) {
+        $vids[] = $vocabulary->vid;
+      }
     }
 
     $query = db_select('taxonomy_term_data', 't');
