diff --git a/src/Entity/FacetSource.php b/src/Entity/FacetSource.php index 6fd3ec3..e90a619 100644 --- a/src/Entity/FacetSource.php +++ b/src/Entity/FacetSource.php @@ -137,7 +137,12 @@ class FacetSource extends ConfigEntityBase implements FacetSourceInterface { ->getStorage('facets_facet'); $id = explode('__', $this->id(), 2); - $id = $id[0] . ':' . $id[1]; + if (count($id) == 2) { + $id = $id[0] . ':' . $id[1]; + } + else { + $id = $id[0]; + } $facet_ids = $entityStorage ->getQuery() ->condition('facet_source_id', $id)