When applying a filter on a custom field I would expect to get the query result. But instead an exception is raised:
A Query::StatementInvalid occurred in dmsf#show:
PG::SyntaxError: ERROR: syntax error at or near "ORDER"
LINE 120: ... ct.id AND (custom_values.value IN ('Secret'))) ORDER BY s...
^
plugins/redmine_dmsf/app/models/dmsf_query.rb:108:in `rescue in dmsf_count'
plugins/redmine_dmsf/app/models/dmsf_query.rb:103:in `dmsf_count'
plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:94:in `block (2 levels) in show'
plugins/redmine_dmsf/app/controllers/dmsf_controller.rb:92:in `show'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'
Hi,
When applying a filter on a custom field I would expect to get the query result. But instead an exception is raised:
Theses are the request params:
You can easily reproduce the issue by these steps:
Start Redmine with postgres as database.
Create a DMS custom field (in my case it was a list field) and mark the checkbox 'Used as a filter'.
Navigate into a project with DMS module enabled, upload some files and select a list value for each.
Add the DMS custom field to the filter, select a value to filter for and apply the filter.
Immediately, the exception should be raised.
This is my environment:
Let me know if you need further information to reproduce the issue.
Best Regards, Liane