Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to reproduce:
- on a node form with an autocomplete term widget, enter more than 128 characters of tags like accumsan, adipiscing, aliquam, aliquet, amet, ante, arcu, at, auctor, augue;, condimentum, congue, consectetur, consequat, convallis,
- save or preview the node
- note how the tags have been truncated
In order to avoid any regression, it should be limited to 1024 like it is in Drupal 6.
Comment | File | Size | Author |
---|---|---|---|
#1 | 971090_1_freetagging_1024.patch | 612 bytes | scor |
Comments
Comment #1
scor CreditAttribution: scor commentedThe autocomplete term widget (tagging) widget does not specify any #maxlength and therefore does not allow to enter more than 128 characters. Drupal 6 sets it to 1024 in taxonomy_form_alter().
Comment #2
rgristroph CreditAttribution: rgristroph commentedI tested this patch on a CVS checkout of Head, and tested with the taxonomy terms both before after patch was applied, and it works and fixes the problem.
--Rob
Comment #3
sun.core CreditAttribution: sun.core commentedLooks good.
Comment #4
webchickAwesome! Committed to HEAD. Thanks!!