Bug 1581307

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: Satoe Imaishi <simaishi>
Component: UI - ServiceAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: bascar, cpelland, dclarizi, eclarizi, greartes, jprause, lavenel, obarenbo, simaishi, sshveta, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.9.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.9.3.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1576288 Environment:
Last Closed: 2018-07-12 13:15:10 UTC Type: ---
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: 1576288    
Bug Blocks:    

Comment 2 CFME Bot 2018-05-22 13:46:12 UTC
New commit detected on ManageIQ/manageiq/gaprindashvili:

https://github.com/ManageIQ/manageiq/commit/f7147ee4f2ab68a93bde0dd5341ed18fa0b78eac
commit f7147ee4f2ab68a93bde0dd5341ed18fa0b78eac
Author:     Greg McCullough <gmccullo>
AuthorDate: Mon May 21 14:07:53 2018 -0400
Commit:     Greg McCullough <gmccullo>
CommitDate: Mon May 21 14:07:53 2018 -0400

    Merge pull request #17449 from eclarizio/BZ1576288

    Adjust how default_value is calculated for multi-select drop downs
    (cherry picked from commit ad699eef42aa47d55bda205f583265a81f3691d0)

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

 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(-)

Comment 3 Niyaz Akhtar Ansari 2018-06-08 23:28:16 UTC
Verified in Version 5.9.3.1.20180606184006_8d120c0

Comment 5 errata-xmlrpc 2018-07-12 13:15:10 UTC
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