In add deadline deviations form, the module field search was case sensitive.
Why?
getSearchResults(() function in ajax_search_select.js was using the default :contains (which is case sensitive) selector to select the module value.
How?
Defined a custom selector "icontains" in ajax_search_results.js file to select elements that contain a specific text substring, case-insensitively and replaced :contains with :icontains in getSearchResults().
Fixes #1280
Testing
Remember to add or update unit tests for new features and changes.
Fixes #1280
Description
What?
In add deadline deviations form, the module field search was case sensitive.
Why?
getSearchResults(() function in ajax_search_select.js was using the default :contains (which is case sensitive) selector to select the module value.
How?
Defined a custom selector "icontains" in ajax_search_results.js file to select elements that contain a specific text substring, case-insensitively and replaced :contains with :icontains in getSearchResults().
Fixes #1280
Testing
Remember to add or update unit tests for new features and changes.
What type of test did you run?
[ADD A DESCRIPTION ABOUT WHAT YOU TESTED MANUALLY]
Did you test the changes in
Think of what is affected by these changes and could become broken
Translation
Programming style
Have you updated the README or other relevant documentation?
Is it Done?
Clean up your git commit history before submitting the pull request!