Bug 1580535
Summary: | Refresh of a second dynamic dialog does not update the hash passed to $evm.object['values'] when another dialog is referenced | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Robb Manes <rmanes> | ||||||
Component: | Automate | Assignee: | eclarizi | ||||||
Status: | CLOSED ERRATA | QA Contact: | Shveta <sshveta> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 5.9.0 | CC: | cpelland, mkanoor, nansari, obarenbo, rovalent, rspagnol, simaishi, smallamp, sshveta, tfitzger | ||||||
Target Milestone: | GA | Keywords: | ZStream | ||||||
Target Release: | 5.9.3 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | 5.9.3 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2018-07-12 13:15:10 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | CFME Core | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Robb Manes
2018-05-21 17:40:42 UTC
We think issue has been fixed with latest PRs. Waiting for QE to validate. Not fixed in master.20180531005435_f827149 Appliance : https://10.8.199.197 Service - generic Shveta, I adjusted the automate method in your master reproducer and it appears to work to me. The automate method was referencing "dialog_dynamic_dialog_parent" but the name of the dialog field was simply "menu". After changing that, it behaves as expected. The dialog works now after the changes made by Erik. Method used ==================== #parent_selection = $evm.root.attributes["dialog_dynamic_dialog_parent"] parent_selection = $evm.root.attributes["dialog_menu"] $evm.log(:info, "DIALOG_DEBUG: child_dialog received #{parent_selection} from parent! #{parent_selection.class}") menu = {'Burger' => 1, 'Fries' => 2, 'Shake' => 3} value = {} case parent_selection when menu['Burger'].to_s value[1] = 'Black Bean' when menu['Fries'].to_s value[1] = 'Sweet Potato' when menu['Shake'].to_s value[1] = 'Vanilla' else value[1] = 'Nothing selected for parent dialog' end $evm.log(:info, "DIALOG_DEBUG: child_dialog is returning values hash of #{value}") $evm.object['values'] = value Created attachment 1447583 [details]
disabled submit
There is one issue though .
After pressing the second refresh , Refresh button for 'topping' dropdown,
The submit button gets disabled .
master.20180531005435_f827149
Hi Shveta, Thanks for the update. We would track the new issue you encountered separately. I'm going to update this issue as working in master, and we can retest on 5.9 when the new build is available. Thanks, Tina Created attachment 1448898 [details]
dialog
Fixed in 5.9.3.1.20180606184006_8d120c0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2018:2184 |