Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1448419 - Default value of dynamic dropdown list not honored CloudForms 4.2
Default value of dynamic dropdown list not honored CloudForms 4.2
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate (Show other bugs)
5.7.0
All All
unspecified Severity high
: GA
: 5.8.0
Assigned To: eclarizi
Shveta
:
Depends On: 1447442
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-05 08:05 EDT by Satoe Imaishi
Modified: 2017-05-31 11:09 EDT (History)
9 users (show)

See Also:
Fixed In Version: 5.8.0.14
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1447442
Environment:
Last Closed: 2017-05-31 11:09:23 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:1367 normal SHIPPED_LIVE Moderate: CFME 5.8.0 security, bug, and enhancement update 2017-05-31 14:16:03 EDT

  None (edit)
Comment 2 CFME Bot 2017-05-05 08:11:39 EDT
New commit detected on ManageIQ/manageiq/fine:
https://github.com/ManageIQ/manageiq/commit/cafe408b25b1dd915a93b7854702aac236904dc0

commit cafe408b25b1dd915a93b7854702aac236904dc0
Author:     Greg McCullough <gmccullo@redhat.com>
AuthorDate: Thu May 4 16:37:10 2017 -0400
Commit:     Satoe Imaishi <simaishi@redhat.com>
CommitDate: Fri May 5 08:06:54 2017 -0400

    Merge pull request #14998 from eclarizio/BZ1447442
    
    Fix for default value of dynamic dropdown list not being honored
    (cherry picked from commit bfcb38b8e2b643aab302d4db1efe122b216eb352)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1448419

 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(-)
Comment 3 Shveta 2017-05-16 14:21:58 EDT
Fixed .
Verified in 5.8.0.14-rc3.20170509175238_5dbf87a
================
Method 
===============
dialog = $evm.object
dialog['data_type'] = "integer"
dialog['values'] = {0 => "zero", 1 => "one", 2 => "two"}
dialog['default_value'] = 1

"one" is selected in the dropdown because it's set to the default value.  Changed the keys to strings
({"0" => "zero", "1" => "one", "2" => "two"})
default value was not honored.
Comment 5 errata-xmlrpc 2017-05-31 11:09:23 EDT
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:1367

Note You need to log in before you can comment on or make changes to this bug.