Browse Source

Fix chained custom field filter doesn't work for User fields (#36940).

Patch by Thomas Löber.



git-svn-id: https://svn.redmine.org/redmine/trunk@21686 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Marius Balteanu 2 years ago
parent
commit
ad3f809beb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/models/query.rb

+ 1
- 1
app/models/query.rb View File

@@ -1176,7 +1176,7 @@ class Query < ActiveRecord::Base
end

filter = available_filters[field]
target_class = filter[:through].format.target_class
target_class = filter[:through].format.target_class.base_class

"#{queried_table_name}.id #{not_in} IN (" +
"SELECT customized_id FROM #{CustomValue.table_name}" +

Loading…
Cancel
Save