Skip to content

🐛 Fix admin status filter "All" option always reverting to "Active"#1239

Merged
0x46616c6b merged 1 commit intomainfrom
fix/admin-status-filter-all-option
Apr 13, 2026
Merged

🐛 Fix admin status filter "All" option always reverting to "Active"#1239
0x46616c6b merged 1 commit intomainfrom
fix/admin-status-filter-all-option

Conversation

@0x46616c6b
Copy link
Copy Markdown
Member

Summary

The "All" option in the status filter dropdown on the admin user and alias list pages did not work — selecting it always reverted to "Active", making it impossible to view deleted entries or all entries together.

Root Cause

The "All" <option> omitted the deleted query parameter from the URL entirely. Since the controller defaults to 'active' when the parameter is absent ($request->query->getString('deleted', 'active')), selecting "All" was indistinguishable from selecting "Active". Additionally, the selected check (deleted == '') could never be true because the controller always provided at least 'active'.

Fix

  • Send deleted=all explicitly in the "All" option URL (instead of omitting the parameter)
  • Update the selected check from deleted == '' to deleted == 'all'
  • Update extra_params filters to treat 'all' as a default value alongside 'active' (so it doesn't appear as a redundant query parameter in search/pagination URLs)

No backend changes were needed — the repositories already handle unknown deleted values by skipping the filter (only 'active' and 'deleted' add a WHERE clause).


The changes and the PR were generated by OpenCode.

The "All" option in the deleted-status dropdown for user and alias
admin lists omitted the deleted parameter from the URL entirely.
Since the controller defaults to "active" when the parameter is
absent, selecting "All" behaved identically to "Active" and deleted
entries were never shown.

Send deleted=all explicitly so the repositories skip the deleted
filter, and update the extra_params filters to treat "all" as a
default value alongside "active".

Co-Authored-By: OpenCode <[email protected]>
@sonarqubecloud
Copy link
Copy Markdown

@0x46616c6b 0x46616c6b marked this pull request as ready for review April 11, 2026 11:18
@0x46616c6b 0x46616c6b merged commit fa93b3b into main Apr 13, 2026
9 checks passed
@0x46616c6b 0x46616c6b deleted the fix/admin-status-filter-all-option branch April 13, 2026 07:28
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.

1 participant