Bug 1468370

Summary: Drop Down List Dialog does not keep default value for Integer type
Product: Red Hat CloudForms Management Engine Reporter: Satoe Imaishi <simaishi>
Component: AutomateAssignee: eclarizi
Status: CLOSED ERRATA QA Contact: Shveta <sshveta>
Severity: high Docs Contact:
Priority: high    
Version: 5.8.0CC: brant.evans, cpelland, dajohnso, eclarizi, fdewaley, gekis, gmccullo, hkataria, jhardy, mfeifer, mkanoor, mpovolny, obarenbo, sshveta, tfitzger
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: automate:dialog
Fixed In Version: 5.8.1.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1463827 Environment:
Last Closed: 2017-08-02 17:33:18 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: 1463827    
Bug Blocks:    
Attachments:
Description Flags
Dialog default value selected
none
no default value none

Comment 2 CFME Bot 2017-07-06 21:01:10 UTC
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/c85ed6ce9cc962a109538a42daff3f5dc4eaebd5

commit c85ed6ce9cc962a109538a42daff3f5dc4eaebd5
Author:     Greg McCullough <gmccullo>
AuthorDate: Tue Jun 27 14:21:22 2017 -0400
Commit:     Satoe Imaishi <simaishi>
CommitDate: Thu Jul 6 16:58:36 2017 -0400

    Merge pull request #15455 from eclarizio/BZ1463827
    
    Fix for Drop Down List Dialog does not keep default value for Integer type
    (cherry picked from commit 65ae59ebd2bb9396f1b5e14f0755350f1b9b2776)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1468370

 app/models/dialog_field_sorted_item.rb          |  2 +-
 spec/models/dialog_field_drop_down_list_spec.rb |  4 +--
 spec/models/dialog_field_sorted_item_spec.rb    | 36 +++++++++++++++++++++++--
 3 files changed, 37 insertions(+), 5 deletions(-)

Comment 3 Shveta 2017-07-13 18:10:51 UTC
Created attachment 1297796 [details]
Dialog default value selected

Not fixed in  5.8.1.2.20170712143358_461cde4

Comment 4 Shveta 2017-07-13 18:11:23 UTC
Created attachment 1297797 [details]
no default value

Comment 5 CFME Bot 2017-07-19 14:09:04 UTC
New commit detected on ManageIQ/manageiq-ui-classic/fine:
https://github.com/ManageIQ/manageiq-ui-classic/commit/d93971ff2c730737921d644f747ce0bc0075b918

commit d93971ff2c730737921d644f747ce0bc0075b918
Author:     Martin Hradil <himdel>
AuthorDate: Wed Jul 19 12:20:14 2017 +0200
Commit:     Satoe Imaishi <simaishi>
CommitDate: Wed Jul 19 09:59:12 2017 -0400

    Merge pull request #1700 from eclarizio/BZ1463827
    
    Fix for Drop Down List Dialog does not keep default value for Integer type
    (cherry picked from commit 0116bb94f078a6d7ec71b7fae93b796644536d65)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1468370

 app/controllers/miq_ae_customization_controller/dialogs.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comment 8 Shveta 2017-07-24 19:51:58 UTC
Fixed.
Verified in 5.8.1.4.20170721182148_8ed7c73

Comment 10 errata-xmlrpc 2017-08-02 17:33:18 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-2017:1758