From d91b1c77aafa5cf69fa9069c940c174c56bd7e1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 31 Oct 2010 12:12:00 +0000 Subject: - Patch #950138 by yched, an.droid: Changed Abstract Field API () usage into an API function. --- modules/taxonomy/taxonomy.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/taxonomy') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 1e0cf45ad..47e845b23 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -1457,7 +1457,7 @@ function taxonomy_autocomplete_validate($element, &$form_state) { $value = array(); if ($tags = $element['#value']) { // Collect candidate vocabularies. - $field = $form_state['field'][$element['#field_name']][$element['#language']]['field']; + $field = field_widget_field($element, $form_state); $vocabularies = array(); foreach ($field['settings']['allowed_values'] as $tree) { if ($vocabulary = taxonomy_vocabulary_machine_name_load($tree['vocabulary'])) { -- cgit v1.2.3