Issue
Duplicated Multiple Choice variable in service catalog form.
STR:
1. Open any catalog item from sc_cat_item
2. Create a Multiple Choice variable with "Question Choices" as below;
- Text: False / Value:false
- Text: True / Value:true
3. Set Default Value to "False" or "True"
4. Save
5. Try it
Expected: There are 2 choices False and True and one of them are selected as a default value.
Actual: There are 3 choices. One of them is a duplicated default value.
Release
London, Madrid
Cause
The default value should be the choice's "Value".
If the "Text" is set in the default value, the system can't find it in the given the choice values then create a new choice. This will be the duplicated one.
Resolution
Set a "Value" of the Question Choice in the default value.