Problem/Motivation
When I enable BEF on a taxonomy term exposed filter, and I choose to show it as a list of links (and not the default select-option list) JS breaks:
Uncaught TypeError: Cannot read property 'toLowerCase' of null(anonymous function) @ mefibs_bef.js?obnl9c:16each @ jquery.min.js?v=1.10.2:4each @ jquery.min.js?v=1.10.2:4(anonymous function) @ mefibs_bef.js?obnl9c:12each @ jquery.min.js?v=1.10.2:4each @ jquery.min.js?v=1.10.2:4attach @ mefibs_bef.js?obnl9c:11(anonymous function) @ drupal.js?obnl9c:76each @ jquery.min.js?v=1.10.2:4Drupal.attachBehaviors @ drupal.js?obnl9c:74(anonymous function) @ drupal.js?obnl9c:481c @ jquery.min.js?v=1.10.2:4fireWith @ jquery.min.js?v=1.10.2:4ready @ jquery.min.js?v=1.10.2:4q @ jquery.min.js?v=1.10.2:4
Proposed resolution
Proposing patch
Remaining tasks
Review
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | mefibs-fix_js_broken_if_select_as_links-2781571-4.patch | 1.09 KB | zekvyrin |
| fix_js_broken_if_select_as_links.patch | 940 bytes | efpapado |
Comments
Comment #2
zekvyrin commentedHad the same issue & tihs patch fixed it.
Thanks! :)
Comment #3
zekvyrin commentedHm.. i had some weird cases where it wasn't a string either (was an array).
So I added another condition.
Comment #4
zekvyrin commentedAnd of course.. coding standards...
Comment #6
berliner commentedCommitted to dev.
Thanks both of you!