Problem/Motivation
Search api is throwing a error message on empty facet parameter on url. This is the error message:
Warning: Invalid argument supplied for foreach() in search_api_form_views_exposed_form_alter() (line 757 of modules/contrib/search_api/search_api.module).
Steps to reproduce
On a search api view, add on the url ?f or ?f= parameter.
Proposed resolution
Do not loop over "f"parameter if is not an array
Remaining tasks
patch and review
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | search_api-3169531-2.patch | 1000 bytes | akalam |
Comments
Comment #2
akalam commentedComment #3
akalam commentedComment #4
drunken monkeyMakes sense, thanks a lot for reporting and providing a patch!
Tested, and it does what it says on the cover. Just adjusted the comment a bit and then committed.
Thanks again!