Skip to content

Conversation

@PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jul 1, 2025

What?

Fixes a bug where adding an additional OR filter condition in the list view selects a field with admin.disableListFilter: true, causing all filter fields to appear disabled.

Why?

When the first field in a collection has disableListFilter set to true, adding a second OR condition defaults to using that field. This leads to a broken filter UI where no valid fields are selectable.

How?

Replaces the hardcoded usage of reducedFields[0] with a call to reducedFields.find(...) that skips fields with disableListFilter: true, consistent with the logic already used when adding the first filter condition.

Fixes #12993

@PatrikKozak PatrikKozak merged commit 7a40a9f into main Jul 1, 2025
239 of 243 checks passed
@PatrikKozak PatrikKozak deleted the fix/disable-list-filter-or-condition branch July 1, 2025 18:35
@github-actions
Copy link
Contributor

github-actions bot commented Jul 3, 2025

🚀 This is included in version v3.45.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants