diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-06-28 06:49:39 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-06-28 06:49:39 +0000 |
commit | 94f3510036690d049ac7425d19fa7c055044ae57 (patch) | |
tree | 7da33f9bee58274ebb7218f6f9767c20f7a39084 /app/models/query.rb | |
parent | 44332d44c4e16c06eaf49ca6e19acf2c95a5c043 (diff) | |
download | redmine-94f3510036690d049ac7425d19fa7c055044ae57.tar.gz redmine-94f3510036690d049ac7425d19fa7c055044ae57.zip |
Merged r21686 and r21687 to 4.2-stable (#36940).
git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21691 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 4f9b9d7a8..03754ccfd 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -1168,7 +1168,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}" + |