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

CommentFileSizeAuthor
#1 facetapi_bonus-undefined_index_f.patch716 bytesjvns
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jvns’s picture

Forgot to attach patch

ygerasimov’s picture

Status: Needs review » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

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