Skip to content

Commit

Permalink
Fixes not displayed filters for a cloud manager
Browse files Browse the repository at this point in the history
Fixes not displayed filters for a cloud manager, the UI code was
searching for "EmsCloud" while Filters have stored in the DB
ManageIQ::Providers::CloudManager.

As a quick fix, we will search for both classes.
  • Loading branch information
Ladas committed Jul 13, 2016
1 parent f1e69dc commit 0614d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/application_controller/filter.rb
Expand Up @@ -1627,9 +1627,9 @@ def build_listnav_search_list(db)
temp = MiqSearch.new
temp.description = _("ALL")
temp.id = 0
@def_searches = MiqSearch.where(:db => db).visible_to_all.sort_by { |s| s.description.downcase }
@def_searches = MiqSearch.where(:db => [db, db.constantize.to_s]).visible_to_all.sort_by { |s| s.description.downcase }
@def_searches = @def_searches.unshift(temp) unless @def_searches.empty?
@my_searches = MiqSearch.where(:search_type => "user", :search_key => session[:userid], :db => db).sort_by { |s| s.description.downcase }
@my_searches = MiqSearch.where(:search_type => "user", :search_key => session[:userid], :db => [db, db.constantize.to_s]).sort_by { |s| s.description.downcase }
end

def process_changed_expression(params, chosen_key, exp_key, exp_value, exp_valx)
Expand Down

0 comments on commit 0614d6a

Please sign in to comment.