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 search terms clearing post type filter from forms. #3891

Merged
merged 5 commits into from
Apr 10, 2024
Merged

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Apr 9, 2024

Description of the Change

Fixes an issue where the default post type that is set from an <input name="post_type"> field in the search form would be cleared if a new search term was entered.

Note that this is only true when the Post Type facet/filter is not in use. If the post type facet is enabled, it will be cleared as before. This is the expected behaviour for filters.

Closes #3868

How to test the Change

Changelog Entry

Fixed - An issue in Instant Results where a default post type filter that is set by a field in the search form would be cleared if a new search term was entered.

Credits

Props @JakePT @burhandodhy

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@JakePT JakePT added this to the 5.1.0 milestone Apr 9, 2024
@felipeelia felipeelia merged commit eb6e7c9 into develop Apr 10, 2024
22 checks passed
@felipeelia felipeelia deleted the fix/3868 branch April 10, 2024 12:17
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.

BUG: Keep ep-post_type in query string for Instant Results if
2 participants