If the user has custom links to the current route, and those links do not have a class defined, this module throws an error while saving.

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array()

A usecase where I ran into this is issue is a block rendering facets. This uses the current route as link, but generates links without a classname.

A simple check before accessing class would fix this.

CommentFileSizeAuthor
#2 3259106-2.patch449 bytesstrykaizer

Comments

StryKaizer created an issue. See original summary.

strykaizer’s picture

Status: Active » Needs review
StatusFileSize
new449 bytes
yahyaalhamad’s picture

Priority: Normal » Major
Status: Needs review » Reviewed & tested by the community

Works well, does not seem like a big change.

  • johnwebdev committed 4c3f120 on 8.x-1.x
    Issue #3259106 by StryKaizer: Custom links to the current page break if...
johnwebdev’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

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