Unable to Filter selective for Bundle types [Call to a member function getLabel() on null]

Created on 10 May 2024, about 2 months ago

Problem/Motivation

Unable to add Content type filter in Views for the selective. Getting below error.

Error: Call to a member function getLabel() on null in Drupal\views\Plugin\views\filter\Bundle->getValueOptions() (line 105 of /var/www/html/core/modules/views/src/Plugin/views/filter/Bundle.php).

Steps to reproduce

  1. Install the views_selective_filters module
  2. Update the existing Admin content view - content
  3. Add Content Type (selective) filter
  4. You're unable to go forward after adding field
  5. Refer the recent logs

Proposed resolution

Exclude the Bundle types in function getOriginalOptions()

Remaining tasks

Patch submit and testing

User interface changes

Nil

API changes

Nil

Data model changes

Nil

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India arunkumark Coimbatore

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024