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 for custom button not passing target object to dynamic dialog fields #15810

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

eclarizio
Copy link
Member

@eclarizio eclarizio commented Aug 14, 2017

While running a dialog in a custom button, users were unable to get a handle to the target resource because .value is what calls into the automate method, but without having set .dialog on the dialog_field, it was unable to get the target resource.

This fix will ensure that the dialog is set on the field before attempting to call .value.

Tagged as WIP for now until the BZ exists.

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

@miq-bot assign @gmcculloug
@miq-bot add_label bug, euwe/yes, fine/yes

@eclarizio eclarizio changed the title [WIP] Fix for inability to use target resource in automate method Fix for custom button not passing target object to dynamic dialog fields Aug 14, 2017
@miq-bot miq-bot changed the title Fix for custom button not passing target object to dynamic dialog fields [WIP] Fix for custom button not passing target object to dynamic dialog fields Aug 14, 2017
@miq-bot miq-bot added the wip label Aug 14, 2017
@miq-bot
Copy link
Member

miq-bot commented Aug 14, 2017

Checked commit eclarizio@f8f29e8 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@eclarizio eclarizio changed the title [WIP] Fix for custom button not passing target object to dynamic dialog fields Fix for custom button not passing target object to dynamic dialog fields Aug 14, 2017
@miq-bot miq-bot removed the wip label Aug 14, 2017
@gmcculloug gmcculloug merged commit ad6fdb6 into ManageIQ:master Aug 14, 2017
@gmcculloug gmcculloug added this to the Sprint 67 Ending Aug 21, 2017 milestone Aug 14, 2017
@gmcculloug
Copy link
Member

Found while working on PR ManageIQ/manageiq-content#170

simaishi pushed a commit that referenced this pull request Aug 23, 2017
Fix for custom button not passing target object to dynamic dialog fields
(cherry picked from commit ad6fdb6)

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

Fine backport details:

$ git log -1
commit 77d0b24b268085fdc99b249f7ae812be29af27be
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Mon Aug 14 17:39:58 2017 -0400

    Merge pull request #15810 from eclarizio/fix_for_nil_dialog
    
    Fix for custom button not passing target object to dynamic dialog fields
    (cherry picked from commit ad6fdb6916ebb747b623f1404a6be4ac8aeafa8c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1484539

simaishi pushed a commit that referenced this pull request Aug 23, 2017
Fix for custom button not passing target object to dynamic dialog fields
(cherry picked from commit ad6fdb6)

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

Euwe backport details:

$ git log -1
commit 04f7d7d3dc0169139db037eb250665f9b45b2bb4
Author: Greg McCullough <gmccullo@redhat.com>
Date:   Mon Aug 14 17:39:58 2017 -0400

    Merge pull request #15810 from eclarizio/fix_for_nil_dialog
    
    Fix for custom button not passing target object to dynamic dialog fields
    (cherry picked from commit ad6fdb6916ebb747b623f1404a6be4ac8aeafa8c)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1484541

d-m-u pushed a commit to d-m-u/manageiq that referenced this pull request Jun 6, 2018
Fix for custom button not passing target object to dynamic dialog fields
(cherry picked from commit ad6fdb6)

https://bugzilla.redhat.com/show_bug.cgi?id=1484539
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