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

Storage: Fixed the process_button method to render the page correctly #305

Conversation

AparnaKarve
Copy link
Contributor

Rendering errors that occurred after the refresh/power button tasks were addressed in the Storage area in the VM/Hosts list view.

issue #243

@@ -108,6 +108,7 @@ def process_button
if @refresh_div == "main_div" && @lastaction == "show_list"
replace_gtl_main_div
else
@ems = identify_record(params[:id])
Copy link
Contributor

Choose a reason for hiding this comment

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

@AparnaKarve why do we need to set @ems in cim_instance controller.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@h-kataria Check out line#119 below.

page.replace_html("main_div", :partial=>"layouts/gtl", :locals=>{:action_url=>"show/{@ems.id}"})

@ems is being used there without being set, which was causing the rendering to blow up.

But since its not being used anywhere else in the cim_instance controller we can get rid of it and change it to a local variable.

Copy link
Contributor

Choose a reason for hiding this comment

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

@AparnaKarve dont we have @record that we could have used on line 119

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@h-kataria Yes, looks like we can use @record here.
I will push the update shortly.

Rendering errors that occurred after the refresh/power button tasks were
addressed in the Storage area in the VM/Hosts associations

issue ManageIQ#243
@miq-bot
Copy link
Member

miq-bot commented Jul 30, 2014

Checked commit AparnaKarve@5552423 with rubocop 0.21.0
1 file checked, 0 offenses detected
Everything looks good. ⭐

@AparnaKarve AparnaKarve mentioned this pull request Jul 30, 2014
24 tasks
dclarizio pushed a commit that referenced this pull request Aug 6, 2014
…ions_gh_issue_243

Storage: Fixed the process_button method to render the page correctly
@dclarizio dclarizio merged commit 681fee3 into ManageIQ:master Aug 6, 2014
@dclarizio dclarizio deleted the storage_vm_and_host_associations_gh_issue_243 branch August 6, 2014 20:15
@chessbyte chessbyte added the bug label Aug 27, 2014
simaishi pushed a commit that referenced this pull request Jul 31, 2018
Use the full URI for the broker connection
(cherry picked from commit 675cc09cac238bfa52850a46d447afa2a9143aa2)

https://bugzilla.redhat.com/show_bug.cgi?id=1608552
simaishi pushed a commit that referenced this pull request Aug 14, 2018
Use the full URI for the broker connection
(cherry picked from commit 675cc09cac238bfa52850a46d447afa2a9143aa2)

https://bugzilla.redhat.com/show_bug.cgi?id=1603578
tumido pushed a commit to tumido/manageiq that referenced this pull request Aug 31, 2018
…onnection

Use the full URI for the broker connection
(cherry picked from commit 675cc09cac238bfa52850a46d447afa2a9143aa2)

https://bugzilla.redhat.com/show_bug.cgi?id=1603578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants