From 8049f94756021402a34ad3f2eb54fee5b19ae39b Mon Sep 17 00:00:00 2001
From: Angie Byron <webchick@24967.no-reply.drupal.org>
Date: Sun, 14 Nov 2010 20:31:45 +0000
Subject: [PATCH] #971090 by scor, rgristroph: Fixed place maxlength on
 taxonomy tag field to prevent data truncation.

---
 modules/taxonomy/taxonomy.module | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index f602f1d09908..10393eea9996 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'),
   );
 
-- 
GitLab