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/bootstrap.inc 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) )
Comment | File | Size | Author |
---|---|---|---|
#1 | hs_empty_level_labels.patch | 856 bytes | roderik |
Comments
Comment #1
roderik*sigh* upload patch -> preview -> submit -> patch gone
Comment #2
Wim LeersTrivial fix, hence RTBC. Thanks for the patch! :)
Will commit soon.
Comment #3
Wim LeersCommitted! Thanks again :)
http://drupal.org/cvs?commit=357324
http://drupal.org/cvs?commit=357326