Index: content_taxonomy.module
===================================================================
--- content_taxonomy.module	(revision 1077)
+++ content_taxonomy.module	(working copy)
@@ -84,6 +84,13 @@
         '#options' => $options_voc,
         '#description' => t('Terms of the selected vocabulary get exposed to the field'),
       );
+      $form['vids'] = array(
+        '#title' => t('Vocabularies'),
+        '#type' => 'checkboxes',
+        '#default_value' => count($field['vids']) > 0 ? $field['vids'] : array(),
+        '#options' => $options_voc,
+        '#description' => t('Terms of the selected vocabularies get exposed to the field'),
+      );
       
       $form['hierarchical_vocabulary'] = array(
         '#type' => 'fieldset',
@@ -123,7 +130,7 @@
       return $form;   
     
     case 'save':
-      return array('save_term_node', 'vid', 'parent', 'parent_php_code', 'depth');
+      return array('save_term_node', 'vid', 'vids', 'parent', 'parent_php_code', 'depth');
     
     case 'database columns':
       return array(
Index: content_taxonomy_autocomplete.module
===================================================================
--- content_taxonomy_autocomplete.module	(revision 1077)
+++ content_taxonomy_autocomplete.module	(working copy)
@@ -273,6 +273,7 @@
   // this, "somecmpany, llc", "and ""this"" w,o.rks", foo bar
   $content_type_info = _content_type_info();
   $vid = $content_type_info['fields'][$field_name]['vid'];
+  $vids = $content_type_info['fields'][$field_name]['vids'];
   $tid = content_taxonomy_field_get_parent($content_type_info['fields'][$field_name]);
   
   // If the menu system has splitted the search text because of slashes, glue it back.
@@ -299,9 +300,9 @@
     else {
       $result = db_query_range(db_rewrite_sql("SELECT t.name FROM {term_data} t 
         LEFT JOIN {term_synonym} s ON t.tid = s.tid
-        WHERE t.vid = %d 
+        WHERE t.vid IN (%s) 
         AND (LOWER(t.name) LIKE LOWER('%%%s%%') OR LOWER(s.name) LIKE LOWER('%%%s%%'))", 't', 'tid'),
-        $vid, $last_string, $last_string, 0, 10);
+	implode(',', $vids), $last_string, $last_string, 0, 10);
     }
     $prefix = count($array) ? '"'. implode('", "', $array) .'", ' : '';
 
