summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-14 20:31:45 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-11-14 20:31:45 +0000
commit8049f94756021402a34ad3f2eb54fee5b19ae39b (patch)
tree9184f891b44d3bb8c66d7d385e3d846078a86f22
parenta16b1d92c404d7af52e2ccd3277cb8b9bd81dc59 (diff)
downloadbrdo-8049f94756021402a34ad3f2eb54fee5b19ae39b.tar.gz
brdo-8049f94756021402a34ad3f2eb54fee5b19ae39b.tar.bz2
#971090 by scor, rgristroph: Fixed place maxlength on taxonomy tag field to prevent data truncation.
-rw-r--r--modules/taxonomy/taxonomy.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index f602f1d09..10393eea9 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1442,6 +1442,7 @@ function taxonomy_field_widget_form(&$form, &$form_state, $field, $instance, $la
'#default_value' => taxonomy_implode_tags($tags),
'#autocomplete_path' => $instance['widget']['settings']['autocomplete_path'] . '/' . $field['field_name'],
'#size' => $instance['widget']['settings']['size'],
+ '#maxlength' => 1024,
'#element_validate' => array('taxonomy_autocomplete_validate'),
);