Skip to content

Commit

Permalink
set @root_class only if it is not already set by subclass
Browse files Browse the repository at this point in the history
setting `@root_class` here was causing incorrect filters to load for Instances/Images Accordions in Cloud/Instances explorer.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1715462
  • Loading branch information
h-kataria committed May 30, 2019
1 parent 1937518 commit 89fc580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/tree_builder_vms_filter.rb
@@ -1,6 +1,6 @@
class TreeBuilderVmsFilter < TreeBuilder
def initialize(*args)
@root_class = 'ManageIQ::Providers::InfraManager::Vm'
@root_class ||= 'ManageIQ::Providers::InfraManager::Vm'
super(*args)
end

Expand Down

0 comments on commit 89fc580

Please sign in to comment.