From 6cfb6e2b4147107205dffce744c272372b4b9e01 Mon Sep 17 00:00:00 2001 From: Hilda Stastna Date: Thu, 12 Jan 2017 15:27:43 +0100 Subject: [PATCH] Fix button when adding a filter in Cloud Providers fixing https://github.com/ManageIQ/manageiq/issues/13219 Fix adding advanced search expression element by clicking on commit button (or okay button) in Compute -> Clouds -> Providers. --- app/controllers/application_controller/filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller/filter.rb b/app/controllers/application_controller/filter.rb index 5b862efb3aa..05944ecc217 100644 --- a/app/controllers/application_controller/filter.rb +++ b/app/controllers/application_controller/filter.rb @@ -307,7 +307,7 @@ def adv_search_button {:model => ui_lookup(:model => @edit[@expkey][:exp_model]), :name => @edit[:new_search_name]}) @edit[@expkey].select_filter(s) - @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description] unless @edit[@expkey][:exp_model] == "Storage" + @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description] unless @edit[@expkey][:exp_last_loaded].nil? @edit[@expkey][:expression] = copy_hash(@edit[:new][@expkey]) # Build the expression table @edit[@expkey][:exp_table] = exp_build_table(@edit[@expkey][:expression])