diff --git a/core/modules/taxonomy/taxonomy.pages.inc b/core/modules/taxonomy/taxonomy.pages.inc index a7ad2c0..9b0d591 100644 --- a/core/modules/taxonomy/taxonomy.pages.inc +++ b/core/modules/taxonomy/taxonomy.pages.inc @@ -145,10 +145,8 @@ function taxonomy_autocomplete($field_name, $entity_type, $bundle_name) { $query->condition('t.name', $tags_typed, 'NOT IN'); } - // @todo Get the match anywhere value from the field widget setting. - // $instance = field_info_instance($entity_type, $field_name, $bundle_name); - // $match = $instance['widget']['settings']['match']; - $match = "anywhere"; + $instance = field_info_instance($entity_type, $field_name, $bundle_name); + $match = $instance['widget']['settings']['match']; switch ($match) { case 'start': $condition_pattern = db_like($tag_last) . '%';