Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2556 from hstastna/VM_Search_filtering_VMs_explorer
Fix Search to filter VMs
(cherry picked from commit e7c322b)

https://bugzilla.redhat.com/show_bug.cgi?id=1509318
  • Loading branch information
mzazrivec authored and simaishi committed Nov 6, 2017
1 parent 520f3b8 commit e9b01a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Expand Up @@ -1504,7 +1504,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 e9b01a7

Please sign in to comment.