Show only used items not working when solr search view fields used.

Created on 23 April 2024, 2 months ago

Problem/Motivation

View of solr search result with better exposed filter, when we set "Show only used items".. then the view get error: getEntity() object on null line: 199 of SelectiveFilterBase.php

Steps to reproduce

Create a view of solr search results
Add exposed filter on terms
select Show only used items
save view

Proposed resolution

pass the entity by loading it in SelectiveFilterBase.php
$entityid = {set entity id value};
$entity = $entityTypeManager->getStorage('node')->load($entityid);

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇮🇳India mayurgajar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024