Actions
Defect #33083
closedProjects filter "Subproject of" does not work when the given value is "My projects" or "My bookmarks"
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Reproduction steps:
- Use PostgreSQL
- View projects/index
- Add "Subproject of" filter
- Set the operator of the "Subproject of" filter to "is" or "is not"
- Set the value of the "Subproject of" filter to << my projects >> or << my bookmarks >>
- Apply => An exception occurs
Error message:
ActiveRecord::StatementInvalid (PG::InvalidTextRepresentation: ERROR: invalid input syntax for integer: "mine" LINE 1: ...rojects.status <> 9) AND ((projects.parent_id IN ('mine'))) ... ^ : SELECT "projects".* FROM "projects" WHERE (projects.status <> 9) AND ((projects.parent_id IN ('mine'))) ORDER BY projects.lft ASC): app/controllers/projects_controller.rb:57:in `block (2 levels) in index' app/controllers/projects_controller.rb:53:in `index' lib/redmine/sudo_mode.rb:64:in `sudo_mode'
Executing the SELECT statement without converting << my projects >>('mine') and << my bookmarks >>('bookmarks') to actual ids is the cause of this problem.
Files
Related issues
Updated by Mizuki ISHIKAWA almost 5 years ago
- File fix-33083.patch fix-33083.patch added
I have attached a patch to fix this problem.
Updated by Go MAEDA almost 5 years ago
- Related to Feature #29482: Query system for Projects page added
Updated by Go MAEDA almost 5 years ago
- Status changed from New to Confirmed
- Affected version set to 4.1.0
Updated by Go MAEDA almost 5 years ago
- Subject changed from Filtering the parent_id field in Project by "My projects" or "My bookmarks" raises an exception to Projects filter "Subproject of" does not work when the given value is "My projects" or "My bookmarks"
- Status changed from Confirmed to Resolved
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the fix. Thank you for catching and fixing the issue.
Updated by Go MAEDA almost 5 years ago
- Status changed from Resolved to Closed
- Assignee deleted (
Go MAEDA) - Resolution deleted (
Fixed)
Updated by Go MAEDA almost 5 years ago
- Assignee set to Go MAEDA
- Resolution set to Fixed
Actions