Description of problem: If I create a service dialog containing a drop-down list populated by an expression method, I am unable to edit the dialog to make the list multi-selectable. I can appear to make the change, but saving the dialog results in a 500 internal server error. It looks like the change is saved because any attempt to subsequently save the same dialog gives the same 500 error. Version-Release number of selected component (if applicable): 5.9.0.22 How reproducible: Every time Steps to Reproduce: 1. Create a service dialog containing a single drop-down list element. Make this element dynamic, and create an expression method to populate it (I used a simple expression method that lists all VMs). Leave the 'Multiselect' option as 'No'. Save the dialog. 2. Now edit the dialog, and change the 'Multiselect' option to 'Yes'. Save the dialog Actual results: A pop-up error with the text: URL https://cloudforms/api/service_dialogs/20 Status 500 Internal Server Error Content-Type application/json; charset=utf-8 Data {"error":{"kind":"internal_server_error","message":"undefined method `collect' for 1:Fixnum","klass":"NoMethodError"}} Expected results: The dialog should be saved without error. Additional info: Attempting to edit the dialog now results in the same 500 error. The only thing that can be done to the dialog is to delete it.
Please ping Billy if you need help any help setting up the expression method.
https://github.com/ManageIQ/manageiq/pull/17259
new fix: https://github.com/ManageIQ/manageiq/pull/17272
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/aa5511decd0dd418fe48b2e412ea62aa221a0f82 commit aa5511decd0dd418fe48b2e412ea62aa221a0f82 Author: Roman Blanco <rblanco> AuthorDate: Tue Apr 10 09:56:56 2018 -0400 Commit: Roman Blanco <rblanco> CommitDate: Tue Apr 10 09:56:56 2018 -0400 Forcing default_value to an array, if the dynamic dropdown is multiselect Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1559030 app/models/dialog_field_radio_button.rb | 4 + app/models/dialog_field_sorted_item.rb | 3 + 2 files changed, 7 insertions(+)
Fixed in 5.10.0.3.20180705151325_ce4d2b5