Unable to add filter "Available on current domain" to view

Created on 3 August 2023, over 1 year ago
Updated 17 October 2023, about 1 year ago

Drupal Version

10.1.2
Database system version
10.8.8-MariaDB-1:10.8.8+maria~ubu2204
PHP Version
8.2.8

Domain module version

2.0.0-beta1

Expected Behavior

Edit an existing view. Add a filter "Available on current domain". It would start filtering front page content based on if they are part of the domain or not.

Actual Behavior

Get a generic error when attempting to save the change.
From the Apache2 log.
[Thu Aug 03 18:01:26.831533 2023] [php:error] [pid 126967] [client 192.168.1.43:43488] PHP Fatal error: Type of Drupal\\domain_access\\Plugin\\views\\filter\\DomainAccessCurrentAllFilter::$value_value must be string (as in class Drupal\\views\\Plugin\\views\\filter\\BooleanOperator) in /var/www/drupal/modules/contrib/domain/domain_access/src/Plugin/views/filter/DomainAccessCurrentAllFilter.php on line 17, referer: https://XXXXXXXXXXXX/admin/structure/views/view/frontpage

Steps to reproduce

* Edit View
* Select Add next to Filter Criteria
* Select Available on Current domain from list.
* Select Apply (all displays)
* get error about it failing to save.

What I did to make it work

I manually applied patch #4 from https://www.drupal.org/project/domain/issues/3367785 🐛 Available on Current Domain doesn't instantiate Needs work the line numbers no longer match but the actually changes were minor and easy. Once making the changes I was able to add the filter and it is working on my system.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇺🇸United States rmiddle

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

Comments & Activities

Production build 0.71.5 2024