Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: Keep PageField with previous page data when filtering formFields by pageNumber. #422

Merged

Conversation

justlevine
Copy link
Member

What

This PR changes the behavior of the pageNumber filter on Form Fields connection, so that GF_Field_Page is included in the results for the previous pageNumber.

This is a breaking change.

Why

As noted in #208 (comment), the Page field includes the data required to create back/next buttons for the page number preceeding it. But because the pageNumber is is for the upcoming page, it misses the field field.

How

Testing Instructions

Additional Info

Checklist:

  • This PR is tested to the best of my abilities.
  • This PR follows the WordPress Coding Standards.
  • This PR has proper inline documentation.
  • This PR has unit tests to verify the code works as intended.
  • The changes in this PR have been noted in CHANGELOG.md

@justlevine justlevine merged commit 22b31ac into AxeWP:develop Jun 8, 2024
17 of 18 checks passed
@justlevine justlevine deleted the fix/keep-page-number-with-previous branch June 8, 2024 10:23
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