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

Parse out empty params from queries #2131

Merged
merged 1 commit into from
Sep 16, 2020
Merged

Parse out empty params from queries #2131

merged 1 commit into from
Sep 16, 2020

Conversation

bibliotechy
Copy link
Contributor

@bibliotechy bibliotechy commented Sep 16, 2020

If an empty param,(), is included in a query, the boolen query parser included from advanced search gem throws an error.

It is documented as an issue upstream at projectblacklight/blacklight_advanced_search#101, but at the moment no fix upstream is proposed.

This PR works around the issue by removing empty parens from the query string. It does not impact parens containing content.

If an empty param,`()`, is included in a query, the boolen query parser included from advanced search gem throws an error.

It is documented as an issue upstream at projectblacklight/blacklight_advanced_search#101, but at the moment no fix upstream is proposed.

This PR works around the issue by removing empty parens from the query string. It does not impact parens containing content.
@dkinzer dkinzer merged commit a8de368 into main Sep 16, 2020
@dkinzer dkinzer deleted the handle-empty-parens branch September 16, 2020 19:18
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.

2 participants