Skip to content

Commit

Permalink
Merge pull request #142 from hstastna/Okay_button_Advanced_search_Clo…
Browse files Browse the repository at this point in the history
…ud_Providers

Fix button when adding a filter in Cloud Providers
  • Loading branch information
mzazrivec authored Jan 18, 2017
2 parents e66cd81 + 6cfb6e2 commit 27b3103
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 @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])
Expand Down

0 comments on commit 27b3103

Please sign in to comment.