"Rearrange filter criteria" - can't add a new filter group

Created on 17 March 2023, over 1 year ago
Updated 11 September 2023, 10 months ago

Problem/Motivation

I am attempting to update my view's filter criteria to something like (A and B and C) and (D or E or F).

The admin UI in the modal pop-up appears to work: I can add a new filter group, drag the specific filters to the right group, and change the ANDs and ORs — but when I click the "Apply (all displays)" button, all of my updates disappear. I land back to the main admin screen and my changes are gone.

I also see an error in the watchdog log:

  • Type: form
  • Location: .../admin/structure/views/ajax/rearrange-filter/VIEWNAME/webform_select_1/filter
  • Referrer: .../admin/structure/views/view/VIEWNAME/edit/webform_select_1
  • Message: Illegal choice 2 in filters element.
  • Severity: error

This used to work; I've used this functionality relatively recently. And older views with more complicated filter groups and operators continue to work correctly, if they were created before this broke. So something must have changed fairly recently.

Does anybody have any ideas what might be causing this problem?

Steps to reproduce

  1. Create a view with multiple filter criteria
  2. Next to "Filter criteria", click "And/Or, Rearrange"
  3. In the modal pop-up click "+ Create new filter group"
  4. Drag a couple of the filter criteria to the new filter group
  5. Click "Apply (all displays)" or "Apply (this display)"
  6. Your changes are gone.
🐛 Bug report
Status

Fixed

Version

3.0

Component

Miscellaneous

Created by

🇺🇸United States BerkeleyJon

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024