-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix button when adding a filter in Cloud Providers #142
Fix button when adding a filter in Cloud Providers #142
Conversation
@miq-bot add_label wip |
if you look into the code, there will be question that if we should remove that whole line at all. I am not sure about that, because it doesn't work only in some places, so I added the condition there. @h-kataria could you please look at it? Thanks. |
This pull request is not mergeable. Please rebase and repush. |
@miq-bot remove_label wip |
6974a13
to
83aeef3
Compare
fixing ManageIQ/manageiq#13219 Fix adding advanced search expression element by clicking on commit button (or okay button) in Compute -> Clouds -> Providers.
83aeef3
to
6cfb6e2
Compare
Checked commit hstastna@6cfb6e2 with ruby 2.2.6, rubocop 0.46.0, and haml-lint 0.19.0 app/controllers/application_controller/filter.rb
|
upstream BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1414470 |
Euwe backport conflict:
$ git diff
diff --cc app/controllers/application_controller/filter.rb
index d7e4124,05944ec..0000000
--- a/app/controllers/application_controller/filter.rb
+++ b/app/controllers/application_controller/filter.rb
@@@ -656,10 -306,8 +656,15 @@@ module ApplicationController::Filte
add_flash(_("%{model} search \"%{name}\" was saved") %
{:model => ui_lookup(:model => @edit[@expkey][:exp_model]),
:name => @edit[:new_search_name]})
++<<<<<<< HEAD
+ adv_search_build_lists
+ # Save the last search loaded (saved)
+ @edit[@expkey][:exp_last_loaded] = {:id => s.id, :name => s.name, :description => s.description, :typ => s.search_type}
+ @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description]
++=======
+ @edit[@expkey].select_filter(s)
+ @edit[:new_search_name] = @edit[:adv_search_name] = @edit[@expkey][:exp_last_loaded][:description] unless @edit[@expkey][:exp_last_loaded].nil?
++>>>>>>> 27b3103... Merge pull request #142 from hstastna/Okay_button_Advanced_search_Cloud_Providers
@edit[@expkey][:expression] = copy_hash(@edit[:new][@expkey])
# Build the expression table
@edit[@expkey][:exp_table] = exp_build_table(@edit[@expkey][:expression]) |
@hstastna Please resolve conflict and make Euwe-specific PR (referencing this one) or suggest other PRs to backport. |
Ah, this needs to be backported after #98. Will try again. |
this PR resolves all the conflicts: ManageIQ/manageiq#13621 |
Backported to Euwe via ManageIQ/manageiq#13621 |
fixing ManageIQ/manageiq#13219
and also
ManageIQ/manageiq#13195
Fix adding advanced search expression element by clicking
on commit button (or okay button) in Compute -> Clouds -> Providers.