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.
When trying to use the 'reset' link, I sometimes get the following error:
Notice: Undefined index: f in FacetapiBonusCurrentSearchResetFiltersLink->execute() (line 41 of /var/shared/sites/suzanne/site/sites/all/modules/contrib/facetapi_bonus/plugins/facetapi/current_search_reset_filters_link.inc).
Warning: array_intersect() [function.array-intersect]: Argument #1 is not an array in FacetapiBonusCurrentSearchResetFiltersLink->execute() (line 41 of /var/shared/sites/suzanne/site/sites/all/modules/contrib/facetapi_bonus/plugins/facetapi/current_search_reset_filters_link.inc)
Adding an isset() check seems to fix the issue
Comment | File | Size | Author |
---|---|---|---|
#1 | facetapi_bonus-undefined_index_f.patch | 716 bytes | jvns |
Comments
Comment #1
jvns CreditAttribution: jvns commentedForgot to attach patch
Comment #2
ygerasimov CreditAttribution: ygerasimov commentedCommitted. Thank you.