]> source.dussan.org Git - redmine.git/commitdiff
Fixed that QueriesController can not handle subclass of IssueQuery (#25265).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Oct 2019 10:13:12 +0000 (10:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Oct 2019 10:13:12 +0000 (10:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18754 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/subclass_factory.rb

index 150de692dee0ef56fc4dcf24f2ad1440a2481c55..c4176b69e409fd324da8461121de3f6966a20682 100644 (file)
@@ -31,7 +31,7 @@ module Redmine
         rescue
           # invalid class name
         end
-        unless subclasses.include? klass
+        unless descendants.include? klass
           klass = nil
         end
         klass