Defect #27122
closedFilter for version name should be case-insensitive
0%
Description
Search for version name does not work for case sensitive names
Files
Updated by Holger Just about 7 years ago
There is a database-agnostic helper method for a case-insensititive LIKE. You should be able to just use this:
where([Redmine::Database.like("Version.table_name}.name", '?'), pattern])
MySQL is case-insensitive by default. Searching on Postgres should work with this method. As for the other supported databases: I'm not fully sure whether they do the right thing there. If they don't show the correct behavior then the Redmine::Database.like
method should be fixed.
Updated by Mischa The Evil about 7 years ago
- File deleted (
photo_2017-09-01_22-08-39.jpg)
Updated by Toshi MARUYAMA about 7 years ago
- Category changed from Search engine to Roadmap
- Target version set to 4.1.0
Updated by Mizuki ISHIKAWA over 6 years ago
- File case_sensitive_filter_for_version_name_2.patch case_sensitive_filter_for_version_name_2.patch added
Attach the patch that added the test to the code written by Holger Just ( #27122#note-2 ).
Updated by Mizuki ISHIKAWA over 6 years ago
- File case_sensitive_filter_for_version_name_3.patch case_sensitive_filter_for_version_name_3.patch added
I fixed the test code.
Updated by Mizuki ISHIKAWA over 6 years ago
- File case_sensitive_filter_for_version_name_4.patch case_sensitive_filter_for_version_name_4.patch added
There was also a problem with the test of case_sensitive_filter_for_version_name_3.patch, so I fixed it.
Updated by Go MAEDA over 6 years ago
- Tracker changed from Patch to Defect
- Subject changed from Case insensitive filter for version name to Filter for version name should be case-insensitive
- Category changed from Roadmap to Project settings
- Target version changed from 4.1.0 to 3.4.6
This is a defect rather than a feature. I am setting target version to 3.4.6.
Updated by Go MAEDA over 6 years ago
- Status changed from New to Resolved
- Assignee set to Go MAEDA
Updated by Go MAEDA over 6 years ago
- Status changed from Resolved to Closed
- Resolution set to Fixed
Committed. Thank you all for detecting and fixing this issue.