Skip to content

Commit

Permalink
Fix Search to filter VMs
Browse files Browse the repository at this point in the history
fixing https://bugzilla.redhat.com/show_bug.cgi?id=1497278

Fix Search to filter out VMs correctly under
Compute -> Infrastructure -> Virtual Machines.
  • Loading branch information
hstastna committed Oct 30, 2017
1 parent 9826580 commit f0861de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -1502,7 +1502,7 @@ def get_view_process_search_text(view)
if @search_text && (
(!@parent && @lastaction == "show_list" && !session[:menu_click]) ||
(@explorer && !session[:menu_click]) ||
(@layout == "miq_policy")) # Added to handle search text from list views in control explorer
%w(miq_policy vm_infra).include?(@layout)) # Added to handle search text from list views in control explorer

stxt = @search_text.gsub("_", "`_") # Escape underscores
stxt.gsub!("%", "`%") # and percents
Expand Down

0 comments on commit f0861de

Please sign in to comment.