From: Jean-Philippe Lang Date: Sat, 19 Oct 2019 10:13:12 +0000 (+0000) Subject: Fixed that QueriesController can not handle subclass of IssueQuery (#25265). X-Git-Tag: 4.1.0~349 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ce867955f01159448ffb5db3e7f00ff540eb14dd;p=redmine.git 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 --- 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