Environment

  • Drupal: 10.3.1 (problem started when upgraded from 10.2.7)
  • Module Entity Reference Exposed Filters 2.0.0-alpha2

Problem/Motivation

In Views, when trying to access the "Settings" (see button-clicked-triggering-the-error.jpg) of an exposed filter created as a "Reference Filter" (see exposed-filter-as-reference-filter.jpg), the popup dialog box does not open (as it used to do in 10.2.7). On the interface I get the following error (see on-screen-error-message.jpg):

Error message
Oops, something went wrong. Check your browser's developer console for more details.

When consulting Drupal Watchdog, this is the full error message

Error: Call to a member function getTargetEntityTypeId() on null in Drupal\business_rules\Plugin\EntityReferenceSelection\BusinessRulesViewsSelection->buildConfigurationForm() (line 373 of /var/www/docroot/modules/contrib/business_rules/src/Plugin/EntityReferenceSelection/BusinessRulesViewsSelection.php).

Steps to reproduce

  1. Install required plugins to be able to create a view with an exposed filter that is of type "reference filter"
  2. After it has been created, try to reach "Settings"

Comments

aarantes created an issue. See original summary.

saurabhkanva’s picture

StatusFileSize
new1.1 KB

This patch will resolve the issue