File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ public function getDesignSpecializationField() {
6060 }
6161
6262 $ optgroup = Dropdown::getStandardDropdownItemTypes ();
63- array_unshift ($ optgroup , '--- ' );
6463 $ field = '<div id="dropdown_values_field"> ' ;
6564 $ field .= Dropdown::showFromArray ('dropdown_values ' , $ optgroup , [
66- 'value ' => $ itemtype ,
67- 'rand ' => $ rand ,
68- 'on_change ' => 'plugin_formcreator_changeDropdownItemtype(" ' . $ rand . '"); ' ,
69- 'display ' => false ,
65+ 'value ' => $ itemtype ,
66+ 'rand ' => $ rand ,
67+ 'on_change ' => 'plugin_formcreator_changeDropdownItemtype(" ' . $ rand . '"); ' ,
68+ 'display_emptychoice ' => true ,
69+ 'display ' => false ,
7070 ]);
7171
7272 $ decodedValues = json_decode ($ this ->question ->fields ['values ' ], JSON_OBJECT_AS_ARRAY );
You can’t perform that action at this time.
0 commit comments