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
Description of problem:
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
Version-Release number of selected component (if applicable):
5.9.2.4.20180501195858_35dc609
How reproducible:
Always
Steps to Reproduce:
1. Create a multi select dynamic drop down and have the automate method set the `default_value` to nil
2. Open the service catalog item
Actual results:
The dialog element displays correctly with no elements selected but if you look at the logs or submit you will find that the first element is selected. This is doubly bad because the first element is selected even though the UI does not show it as selected and there seems to be no way to select no default which is a regression from 5.8.
Expected results:
Should be able to set the default value to nil and have no items selected by default.
Additional info:
Worked around this by adding a bogos entry of { nil => "<Choose>" } but even that option won't be selected when the default option is set to nil and so it just becomes another item in the drop down cluttering the UI.
I have worked on this with Erik Clarizio and discovered a few things. The backend seems to be changing the data type for the return of defaults in a multiselect scenario. It converts an array over to a string and it is confusing the frontend. Erik has offered to take a look at this issue to fix the backend.
Description of problem: 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 Version-Release number of selected component (if applicable): 5.9.2.4.20180501195858_35dc609 How reproducible: Always Steps to Reproduce: 1. Create a multi select dynamic drop down and have the automate method set the `default_value` to nil 2. Open the service catalog item Actual results: The dialog element displays correctly with no elements selected but if you look at the logs or submit you will find that the first element is selected. This is doubly bad because the first element is selected even though the UI does not show it as selected and there seems to be no way to select no default which is a regression from 5.8. Expected results: Should be able to set the default value to nil and have no items selected by default. Additional info: Worked around this by adding a bogos entry of { nil => "<Choose>" } but even that option won't be selected when the default option is set to nil and so it just becomes another item in the drop down cluttering the UI.