-
Notifications
You must be signed in to change notification settings - Fork 356
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
Display paging controls on PXE/Customization Templates list #1135
Display paging controls on PXE/Customization Templates list #1135
Conversation
@miq-bot add_label bug |
5d813bd
to
67e62c0
Compare
app/controllers/pxe_controller.rb
Outdated
presenter.reset_one_trans | ||
presenter.one_trans_ie if %w(save reset).include?(params[:button]) && is_browser_ie? | ||
presenter.update(:paging_div, r[:partial => "layouts/x_pagingcontrols"]) | ||
unless params[:ppsetting] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jzigmund wondering if we need this check, if @in_a_form
is set params[:ppsetting]
should not be present in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea right, it's not needed, I've put it there previously to avoid nil on local variable nodes
, that I found as unused later and removed it in this PR .. so the conditional is not needed here .. good catch ;-)
67e62c0
to
c4e64b0
Compare
Checked commit jzigmund@c4e64b0 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/controllers/pxe_controller.rb
|
@h-kataria updated PR, removed unnecessary conditional according to your review comment |
LGTM, test failures are not related to changes in this PR. |
…_custom_templates Display paging controls on PXE/Customization Templates list (cherry picked from commit 1e3a585)
Fine backport details:
|
Added updating
paging_div
with the x_pagingcontrols partial view and fixed double rendered error.Previously the paging controls were not displayed when user came to the list view through selected group of the templates in the tree (tree_select - JS request), but after refresh the page (explorer - HTML request) the controls have been displayed, and when user changed the paging settings it finished with double render error.
https://bugzilla.redhat.com/show_bug.cgi?id=1442751