Skip to content

[6.x] Fix collection whereStatus logic#14380

Merged
jasonvarga merged 1 commit into6.xfrom
fix-collection-badges
Mar 27, 2026
Merged

[6.x] Fix collection whereStatus logic#14380
jasonvarga merged 1 commit into6.xfrom
fix-collection-badges

Conversation

@jackmcdade
Copy link
Copy Markdown
Member

@jackmcdade jackmcdade commented Mar 27, 2026

Closes #13341


Note

Medium Risk
Changes status-filtering query logic for dated collections, which can affect what entries appear as scheduled/expired in listings and badges. Risk is moderate due to potential behavior changes across collections with different date visibility settings.

Overview
Fixes whereStatus('scheduled'|'expired') filtering so dated collections only return results when their corresponding date behavior is private; collections with public or unlisted future/past behaviors now intentionally return no matches for those statuses.

Extends EntryQueryBuilderTest::it_filters_by_status with new news and alerts collections to validate status results when future or past date behavior is unlisted.

Written by Cursor Bugbot for commit c0d9404. This will update automatically on new commits. Configure here.

@jasonvarga jasonvarga changed the title [6.x] Fix collection badges [6.x] Fix collection whereStatus logic Mar 27, 2026
@jasonvarga jasonvarga merged commit 1a7473a into 6.x Mar 27, 2026
22 checks passed
@jasonvarga jasonvarga deleted the fix-collection-badges branch March 27, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Number of scheduled entries displayed at the collection level can be wrong

2 participants