Skip to content

🐛 fix sorting only#29

Merged
garak merged 1 commit into
mainfrom
fix
May 7, 2026
Merged

🐛 fix sorting only#29
garak merged 1 commit into
mainfrom
fix

Conversation

@garak
Copy link
Copy Markdown
Member

@garak garak commented May 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 07:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Filter::filter() to support returning sorting information even when no filter form has been previously registered, aligning with the goal of enabling “sorting-only” behavior.

Changes:

  • Cache the session instance in filter() and read saved filter values before checking for an initialized form.
  • Add an early-return path that returns _sort (if present) when no filter values exist in session and no form is registered.
  • Keep _sort appended to the resulting filter output when available.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Filter.php Outdated
Comment thread src/Filter.php Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Filter.php Outdated
Comment thread tests/FilterTest.php Outdated
@garak garak merged commit 1594bcc into main May 7, 2026
7 checks passed
@garak garak deleted the fix branch May 7, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants