Filter for version name should be case-insensitive
|Assignee:||Go MAEDA||% Done:|
Search for version name does not work for case sensitive names
Filter for version name should be case-insensitive (#27122).
Patch by Holger Just and Mizuki ISHIKAWA.
#2 Updated by Holger Just almost 4 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.
#8 Updated by Go MAEDA over 3 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.