Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: The default value is not stored for a Dialog of type "Drop Down List" with value "Integer". This is not a dynamic dialog. Version-Release number of selected component (if applicable): 5.8.0.17 How reproducible: Always Steps to Reproduce: 1. Create a dialog with type "Drop Down List" and value "Integer" 2. Create 3 entries (1 => 1, 2 => 2, 3 =>3) 3. Set a default value either 1, 2, or 3 Actual results: The default value is not stored in the dialog Expected results: The default value should be stored in the dialog Additional info: I have tested this with type "Radio Button" and value "Integer" and the default value is stored correctly. Also, for type "Radio Button" and "Drop Down List" with value "String" the default value is stored correctly.
This should be fixed by the same thing that fixed https://bugzilla.redhat.com/show_bug.cgi?id=1447442. Here's the Github PR: https://github.com/ManageIQ/manageiq/pull/14998
It should be now, as my previous comment was incorrect.
https://github.com/ManageIQ/manageiq/pull/15455
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/efa7d4bbfdc940ecfabc77c0ba9f4c088551c559 commit efa7d4bbfdc940ecfabc77c0ba9f4c088551c559 Author: Erik Clarizio <eclarizi> AuthorDate: Tue Jun 27 07:44:29 2017 -0700 Commit: Erik Clarizio <eclarizi> CommitDate: Tue Jun 27 10:43:24 2017 -0700 Ensure values are cast to proper data_type for default_value comparison https://bugzilla.redhat.com/show_bug.cgi?id=1463827 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(-)
New commit detected on ManageIQ/manageiq-ui-classic/master: https://github.com/ManageIQ/manageiq-ui-classic/commit/1e7673ee8386e0610aabce312a11dc8b4a118555 commit 1e7673ee8386e0610aabce312a11dc8b4a118555 Author: Erik Clarizio <eclarizio> AuthorDate: Mon Jul 17 09:56:56 2017 -0700 Commit: Erik Clarizio <eclarizio> CommitDate: Mon Jul 17 09:56:56 2017 -0700 Ensure updated default_value select picker is properly initialized https://bugzilla.redhat.com/show_bug.cgi?id=1463827 app/controllers/miq_ae_customization_controller/dialogs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
*** Bug 1471964 has been marked as a duplicate of this bug. ***
Default value is stored in 5.9.0.2.20171010190026_0413a06