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
- Install required plugins to be able to create a view with an exposed filter that is of type "reference filter"
- After it has been created, try to reach "Settings"
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | business_rules-3464804-2.patch | 1.1 KB | saurabhkanva |
| on-screen-error-message.jpg | 37.67 KB | aarantes | |
| button-clicked-triggering-the-error.jpg | 32.82 KB | aarantes | |
| exposed-filter-as-reference-filter.jpg | 130.07 KB | aarantes |
Comments
Comment #2
saurabhkanva commentedThis patch will resolve the issue