Bug 1447442
| Summary: | Default value of dynamic dropdown list not honored CloudForms 4.2 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | myoder | ||||
| Component: | Automate | Assignee: | eclarizi | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Shveta <sshveta> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 5.7.0 | CC: | cpelland, dajohnso, gmccullo, jhardy, mkanoor, myoder, obarenbo, rspagnol, simaishi, sshveta, tfitzger | ||||
| Target Milestone: | GA | Keywords: | TestOnly | ||||
| Target Release: | 5.9.0 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | dialog | ||||||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1448419 1448421 (view as bug list) | Environment: | |||||
| Last Closed: | 2018-03-06 14:32:50 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | Bug | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | CFME Core | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1448419, 1448421 | ||||||
| Attachments: |
|
||||||
|
Description
myoder
2017-05-02 19:55:13 UTC
I've determined the cause, and until we can get a fix out, the workaround to make the keys strings will work. They will still be submitted to the request as integers, because the data-type is set to integer, but currently the 'default_value' is always being treated as a string, so when comparing the string to the integer, it fails. Is it feasible to continue with this workaround for now until I can get a proper fix put together? New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/830dc8ab3a09a40bb5e1632111d07fb9d6e9f2cf commit 830dc8ab3a09a40bb5e1632111d07fb9d6e9f2cf Author: Erik Clarizio <eclarizi> AuthorDate: Thu May 4 09:23:12 2017 -0700 Commit: Erik Clarizio <eclarizi> CommitDate: Thu May 4 10:12:57 2017 -0700 Coerce default_value for sorted items into appropriate type https://bugzilla.redhat.com/show_bug.cgi?id=1447442 app/models/dialog_field_sorted_item.rb | 9 +++-- spec/models/dialog_field_drop_down_list_spec.rb | 52 +++++++++++++++++++++---- 2 files changed, 51 insertions(+), 10 deletions(-) Can you please attach the dialog and dynamic method used . Thanks, Shveta Created attachment 1278295 [details]
dynamic_dropdown
Attached the dynamic dropdown provided by the customer
Default value is stored in 5.9.0.2.20171010190026_0413a06 |