Bug 1576288
Summary: | When using dynamic multi select dialog elements the first element is always selected even if nil default is specified and it does not show up as selected in UI | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Ian Tewksbury <itewksbu> | |
Component: | UI - Service | Assignee: | eclarizi | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Niyaz Akhtar Ansari <nansari> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.9.0 | CC: | cpelland, eclarizi, greartes, jprause, lavenel, nansari, obarenbo, simaishi, tfitzger | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1581307 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-11 13:58:48 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: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1581307 |
Description
Ian Tewksbury
2018-05-09 07:21:03 UTC
I have worked on this with Erik Clarizio and discovered a few things. The backend seems to be changing the data type for the return of defaults in a multiselect scenario. It converts an array over to a string and it is confusing the frontend. Erik has offered to take a look at this issue to fix the backend. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/b73e8f6613be622a6f190b241b8904981facf0a9 commit b73e8f6613be622a6f190b241b8904981facf0a9 Author: Erik Clarizio <eclarizi> AuthorDate: Mon May 21 01:01:39 2018 -0400 Commit: Erik Clarizio <eclarizi> CommitDate: Mon May 21 01:01:39 2018 -0400 Adjust how default_value is calculated for multi-value drop downs https://bugzilla.redhat.com/show_bug.cgi?id=1576288 app/models/dialog_field_drop_down_list.rb | 22 + app/models/dialog_field_sorted_item.rb | 3 - spec/models/dialog_field_drop_down_list_spec.rb | 56 +- spec/models/dialog_field_sorted_item_spec.rb | 23 - 4 files changed, 76 insertions(+), 28 deletions(-) Verified in Version 5.10.0.21.20181023151612_4c11b0d |