The combination of issue title + the patch says enough.

However, to be complete, the observed behavior:
- create a new vocabulary & enable level labels (which you cannot fill at that point)
- go to /taxonomy/N/add/term to add the first term to the vocabulary
- get an error : "warning: strlen() expects parameter 1 to be string, array given in /home/roderik/www/6dev/includes/ on line 774." (and the HS elements displayed in the 'advanced' fieldset are slightly off)

The reason, ultimately:
somewhere in _hierarchical_select_hierarchy_generate(), t() gets called with an undefined value (because of the level label being unfilled) -- and $label gets set with a huge array ( which is the output of locale(undef, $langcode) )

#1 hs_empty_level_labels.patch856 bytesroderik
Members fund testing for the Drupal project. Drupal Association Learn more


roderik’s picture

856 bytes

*sigh* upload patch -> preview -> submit -> patch gone

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Trivial fix, hence RTBC. Thanks for the patch! :)

Will commit soon.

Wim Leers’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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