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

Display paging controls on PXE/Customization Templates list #1135

Conversation

jzigmund
Copy link

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

@jzigmund
Copy link
Author

@miq-bot add_label bug

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]
Copy link
Contributor

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.

Copy link
Author

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 ;-)

@jzigmund jzigmund force-pushed the bz1442751-fix_paging_ctrls_pxe_custom_templates branch from 67e62c0 to c4e64b0 Compare April 24, 2017 17:07
@miq-bot
Copy link
Member

miq-bot commented Apr 24, 2017

Checked commit jzigmund@c4e64b0 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 1 offense detected

app/controllers/pxe_controller.rb

@jzigmund
Copy link
Author

@h-kataria updated PR, removed unnecessary conditional according to your review comment

@h-kataria
Copy link
Contributor

LGTM, test failures are not related to changes in this PR.

@h-kataria h-kataria added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 24, 2017
@h-kataria h-kataria merged commit 1e3a585 into ManageIQ:master Apr 24, 2017
simaishi pushed a commit that referenced this pull request Apr 24, 2017
…_custom_templates

Display paging controls on PXE/Customization Templates list
(cherry picked from commit 1e3a585)
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit 5aa8386139f67ae59fe45d730c34fa70c9e709e4
Author: Harpreet Kataria <[email protected]>
Date:   Mon Apr 24 16:38:59 2017 -0400

    Merge pull request #1135 from jzigmund/bz1442751-fix_paging_ctrls_pxe_custom_templates
    
    Display paging controls on PXE/Customization Templates list
    (cherry picked from commit 1e3a58562433d557213ee0c748a15a32c7949470)

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.

5 participants