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

Comments

efpapado created an issue. See original summary.

zekvyrin’s picture

Status: Active » Reviewed & tested by the community

Had the same issue & tihs patch fixed it.

Thanks! :)

zekvyrin’s picture

Hm.. i had some weird cases where it wasn't a string either (was an array).

So I added another condition.

zekvyrin’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new1.09 KB

And of course.. coding standards...

  • berliner committed f053887 on 7.x-1.x authored by Zekvyrin
    Issue #2781571 by Zekvyrin, efpapado: JS broken with BEF select as links...
berliner’s picture

Status: Needs review » Fixed

Committed to dev.

Thanks both of you!

Status: Fixed » Closed (fixed)

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