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

Incorrect condition on Weekly pace course search filter having an AND instead of OR #2532

Open
igobranco opened this issue Nov 5, 2024 · 0 comments

Comments

@igobranco
Copy link
Collaborator

igobranco commented Nov 5, 2024

Bug Report

Problematic Behavior
When we select multiple Weekly pace options on the course search filter page we don't see any results.

When we select:

  • ✔️ One to two hours (4)
  • ✔️ More than two hours (21)

On the page https://demo.richie.education/en/courses/?licences=3&licences=2&limit=21&offset=0&pace=1h-2h&pace=gt-2h

The results is always empty.

Expected behavior/code
The search result should merge (OR) the filter conditions, because the component is a select multiple on the Weekly pace.

Steps to Reproduce

Both Weekly pace's has courses:
https://demo.richie.education/en/courses/?licences=3&licences=2&limit=21&offset=0&pace=1h-2h
https://demo.richie.education/en/courses/?licences=3&licences=2&limit=21&offset=0&pace=gt-2h

When both are selected, if didn't show any couse:
https://demo.richie.education/en/courses/?licences=3&licences=2&limit=21&offset=0&pace=1h-2h&pace=gt-2h

Environment

  • Richie version: demo site and our NAU instance

Possible Solution

Fix the implementation to use and OR instead of AND.

Additional context/Screenshots

image

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

No branches or pull requests

1 participant