Skip to content

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

Description

@igobranco

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions