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.
Hey.
I've added a facet and set the empty facet behavior to "Display text". If I now view the search page and the facet has no results I get the following notice: "Notice: Undefined index: ... in Drupal\facets\Plugin\facets\facet_source\SearchApiViewsPage->fillFacetsWithResults() (line 117 of modules/contrib/facets/src/Plugin/facets/facet_source/SearchApiViewsPage.php)."
Comment | File | Size | Author |
---|---|---|---|
#2 | empty_facet-2682667-2.patch | 754 bytes | stBorchert |
Comments
Comment #2
stBorchertAdd check for existence of field identifier in facet results.
Comment #3
Novitsh CreditAttribution: Novitsh at Colruyt Group Services commentedPatch applied cleanly and notice is removed.
Setting to RTBC.
Thanks @stBorchert
Comment #4
borisson_Committed and pushed, thanks.