Steps to reproduce:
1. Create a taxonomy with circa 5 levels of depth and terms of circa 30 characters on each level
2. Set taxiselect to display entire term hierarchy inside the textfield
3. Select a term on the lowest level of depth
4. Note the warning level drupal message that states "Taxonomy cannot be longer than 128 characters but is currently XXX characters long.

It appears that setting the #maxlength array key to 1024 for in taxiselect.pages.inc solves this issue with no other regressions noted.

$form['taxonomy'][$vocabulary->vid] = array(
'#type' => 'taxiselect_element',
'#vocabulary' => $vocabulary,
'#default_value' => array_keys($default_terms),
'#maxlength' => 1024,
);

I do not have diff available on this machine, so could a maintainer please make this one line change here (and anywhere else #maxlength is not yet set) without it being rolled into a patch file? Thanks

Comments

alan d.’s picture

Version: 6.x-2.0-rc1 » 6.x-2.x-dev
Assigned: higherform » alan d.
Status: Needs review » Fixed

The dev version already appears to have this, I must have committed it without following up.

Cheers

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.