Limit list to selected items ['expose']['reduce'] don't care about the operator

Created on 2 July 2025, 10 days ago

Problem/Motivation

Working with drupal views and drupal/verf modules
The filter option really display the checked items, even when the operator is negative.

Steps to reproduce

I'm filtering on a content type
then filtering on a verf entity
The filter is exposed
The operator is negative :
I check the entities that should not appear in the choice list.
I check the option
I save the filter
I save the view.
I check the view: the selected entities checked are displayed while they should not. Only the unchecked entities should appear.

If this issue isn't a view issue, please let me know, I will move it to the verf project.

Regards.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.4

Component

views_ui.module

Created by

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

Comments & Activities

  • Issue created by @fabrondeau
  • 🇳🇿New Zealand quietone

    If this problem was discovered on a version of Drupal that is not 11.x, add that information in the issue summary and leave the version at 11.x. In Drupal core changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies . Also mentioned on the version section of the list of issue fields documentation. Thanks.

  • 🇳🇱Netherlands Lendude Amsterdam

    If I understand you correctly, what you expect to see is not how it's supposed to work. The operator is only for the resulting query, not for which options are shown in the filter, so if you limit the options it will always show the options you checked, not the reverse of what you checked.

    Am I understanding your issue correctly?

Production build 0.71.5 2024