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

Fixed to use bootstrap select event instead of UJS observer #4488

Conversation

h-kataria
Copy link
Contributor

Using old leftover UJS observers on the drop downs was causing form to send up multipe transaction when a selection was made in drop downs, causing other issues in the form.
convert id to_i to make sure the comparison of is between same types

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1615853

@dclarizio Attached a video in the BZ that verifies the fix.

@lgalis can you please review/verify fix.

Using old leaftover UJS observers on the drop downs was causing form to send up multipe transaction when a selection was made in drop downs, causing other issues in the form.
convert id to_i to make sure the comparison of is between same types

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1615853
@miq-bot
Copy link
Member

miq-bot commented Aug 16, 2018

Checked commit h-kataria@5c6044c with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 1 offense detected

app/controllers/catalog_controller.rb

@dclarizio dclarizio merged commit 44601d4 into ManageIQ:master Aug 16, 2018
@dclarizio dclarizio added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 16, 2018
@lgalis
Copy link
Contributor

lgalis commented Aug 16, 2018

This was merged while I was testing - looks good - also verified the fix in the UI.

@simaishi
Copy link
Contributor

@h-kataria The BZ is marked for Gaprindashvili backport, but this PR is gaprindashvili/no. Are you going to create a separate PR for G-branch?

@h-kataria
Copy link
Contributor Author

@simaishi fixed the label, i meant to add gaprindashvili/yes label initially

simaishi pushed a commit that referenced this pull request Sep 17, 2018
…wn_selection_fix

Fixed to use bootstrap select event instead of UJS observer
(cherry picked from commit 44601d4)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618836
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 6e3f4bd05f43786b649b8106414265be46b422be
Author: Dan Clarizio <[email protected]>
Date:   Thu Aug 16 14:17:42 2018 -0700

    Merge pull request #4488 from h-kataria/double_transaction_on_drop_down_selection_fix
    
    Fixed to use bootstrap select event instead of UJS observer
    (cherry picked from commit 44601d4fdbe112ffcfcdfbb63da5f135f0b3a7ca)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1618836

@h-kataria h-kataria deleted the double_transaction_on_drop_down_selection_fix branch October 24, 2018 22:04
h-kataria added a commit to h-kataria/manageiq-ui-classic that referenced this pull request Oct 29, 2018
h-kataria added a commit to h-kataria/manageiq-ui-classic that referenced this pull request Oct 29, 2018
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