Skip to content
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 duplicate DOM id when saving advanced search. #1177

Merged
merged 1 commit into from May 2, 2017

Conversation

martinpovolny
Copy link

The generiv tree partial contains the div being replaced so we need to
call 'replace' rather than 'replace_html'.

Second, the forman related partial does not exist at all therefor the
branch is a nonsense.

ping @isimluk

The generiv tree partial contains the div being replaced so we need to
call 'replace' rather than 'replace_html'.

Second, the forman related partial does not exist at all therefor the
branch is a nonsense.
@@ -450,14 +450,10 @@ def adv_search_button
if ["delete", "saveit"].include?(params[:button])
if @edit[:in_explorer] || x_active_tree == :storage_tree
tree_name = x_active_tree.to_s
if "configuration_manager_cs_filter_tree_tree" == tree_name
page.replace_html("#{tree_name}_div", :partial => "provider_foreman/#{tree_name}")
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is worth removal.

But it was added recently (d63b47e).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My ❤️ can feel the pain 😢

@miq-bot
Copy link
Member

miq-bot commented Apr 27, 2017

Checked commit martinpovolny@efc38b6 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 2 offenses detected

app/controllers/application_controller/filter.rb

  • ❗ - Line 454, Col 13 - Style/IndentHash - Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.
  • ❗ - Line 456, Col 11 - Style/IndentHash - Indent the right brace the same as the first position after the preceding left parenthesis.

@martinpovolny
Copy link
Author

ping @himdel : I am not going to remove the other dead code in this PR. That needs to be done in a separate one. Please, merge.

@himdel himdel added this to the Sprint 60 Ending May 8, 2017 milestone May 2, 2017
@himdel himdel merged commit 8bb8168 into ManageIQ:master May 2, 2017
@martinpovolny martinpovolny deleted the fix_dupl_dom_id_adv_search branch November 28, 2017 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants