diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-06-27 18:04:07 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-06-27 18:04:07 +0000 |
commit | ad3f809bebde1a40de4765f225236070d623aa72 (patch) | |
tree | d1cbb14d89526a9e09ff0163770f4e69773e771f /app/models/query.rb | |
parent | 3ff5aea8f7863ffe55391cd3963475ba239ca546 (diff) | |
download | redmine-ad3f809bebde1a40de4765f225236070d623aa72.tar.gz redmine-ad3f809bebde1a40de4765f225236070d623aa72.zip |
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
Diffstat (limited to 'app/models/query.rb')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 4ef74a25e..1a614f175 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -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}" + |