Skip to content

Loris Menu Filter on Candidate Sex not working #7492

@jstirling91

Description

@jstirling91

Describe the bug
When adding a menu filter for the candidate sex, filtering on male is returning female as the SQL query is using candidate.sex LIKE '%male% instead of candidate.sex = 'male'. Seems the substring if condition was not properly updated to use the sex string length.

To Reproduce
Steps to reproduce the behavior (attach screenshots if applicable):
Unsure of with core modules still use POST to preform menu filters. Most see to be reactified.

What did you expect to happen?
Expected only male candidates to return.

Browser Environment (please complete the following information):

  • ALL

Server Environment (if known):\

  • LORIS Version: 23.0.3\

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Category: BugPR or issue that aims to report or fix a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions