Skip to content

Commit

Permalink
Fix button when adding a filter in Cloud Providers
Browse files Browse the repository at this point in the history
fixing ManageIQ/manageiq#13219

Fix adding advanced search expression element by clicking on
commit button (or okay button) in Compute -> Clouds -> Providers.
  • Loading branch information
Hilda Stastna committed Jan 16, 2017
1 parent 3f491c1 commit 83aeef3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %w(Storage ManageIQ::Providers::CloudManager).include?(@edit[@expkey][:exp_model])
@edit[@expkey][:expression] = copy_hash(@edit[:new][@expkey])
# Build the expression table
@edit[@expkey][:exp_table] = exp_build_table(@edit[@expkey][:expression])
Expand Down

0 comments on commit 83aeef3

Please sign in to comment.