Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
QueryString::buildUrls throws fatal error in facets_system_breadcrumb_alter() when there are no active results.
Comment | File | Size | Author |
---|---|---|---|
#4 | facets_system_breadcrumb_alter_2.patch | 627 bytes | arthur_lorenz |
facets_system_breadcrumb_alter.patch | 596 bytes | arthur_lorenz |
Comments
Comment #2
fagoI'm not sure this fixes the problem in all situations, let's make sure the code works for sure:
$active_results[$facet->getUrlAlias()] could be not set, what leads to NULL to be passed on, what is not valid. So we need to check !empty( $active_results[$facet->getUrlAlias()]) instead of just $active_results.
Comment #3
fagoComment #4
arthur_lorenz CreditAttribution: arthur_lorenz commentedGood point, fixed it.
Comment #5
arthur_lorenz CreditAttribution: arthur_lorenz commentedComment #6
borisson_Looks like a really small bugfix, thanks.
Comment #7
borisson_Committed and pushed, thanks!