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)."

CommentFileSizeAuthor
#2 empty_facet-2682667-2.patch754 bytesstBorchert
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stBorchert created an issue. See original summary.

stBorchert’s picture

Status: Active » Needs review
FileSize
754 bytes

Add check for existence of field identifier in facet results.

Novitsh’s picture

Status: Needs review » Reviewed & tested by the community

Patch applied cleanly and notice is removed.
Setting to RTBC.

Thanks @stBorchert

borisson_’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed, thanks.

  • borisson_ committed be9a25a on 8.x-1.x authored by stBorchert
    Issue #2682667 by stBorchert: Undefined index ... in SearchApiViewsPage...

Status: Fixed » Closed (fixed)

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