summaryrefslogtreecommitdiffstats
path: root/lib/redmine/subclass_factory.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 10:13:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2019-10-19 10:13:12 +0000
commitce867955f01159448ffb5db3e7f00ff540eb14dd (patch)
tree9f7e5d901f20ab2e663eb92f602421cbe4e22bc9 /lib/redmine/subclass_factory.rb
parente66cce5d5db8a8562b3080e151b1ec51eedfcb52 (diff)
downloadredmine-ce867955f01159448ffb5db3e7f00ff540eb14dd.tar.gz
redmine-ce867955f01159448ffb5db3e7f00ff540eb14dd.zip
Fixed that QueriesController can not handle subclass of IssueQuery (#25265).
git-svn-id: http://svn.redmine.org/redmine/trunk@18754 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/subclass_factory.rb')
-rw-r--r--lib/redmine/subclass_factory.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/subclass_factory.rb b/lib/redmine/subclass_factory.rb
index 150de692d..c4176b69e 100644
--- a/lib/redmine/subclass_factory.rb
+++ b/lib/redmine/subclass_factory.rb
@@ -31,7 +31,7 @@ module Redmine
rescue
# invalid class name
end
- unless subclasses.include? klass
+ unless descendants.include? klass
klass = nil
end
klass