View Issue Details

IDProjectCategoryView StatusLast Update
0006997module Visual CMSmodule Visual CMS - subpublic2019-06-21 18:17
Reporter[email protected] 
Status acknowledgedResolutionopen 
Product Version3.3.1 
Target VersionFixed in Version 
Summary0006997: clear multi select input field when data-default-value is using
DescriptionIt's not possible to clear an multiple select field with default data settings.

When you create a new widget the default value is selected. After clearing the input-field and save the widget the value is always selected. You can't clear the multi select field when the attribute "data-default-value" is used. After deletion of the values or clearing the input the parameter is not shown in the widget code.
I expect that the default value is always being used when the widget is in creation mode and when I clear the input-field the widget parameter is empty. So the visual cms can load the empty parameters and the default value in edit mode is not used anymore.

widget addOption code to create the multiple-select-field:
            'test' => array(
                'type' => 'multi',
                'label' => 'test',
                'values' => array(0 => 1, 1 => 2, 2 => 3),
                'value' => '1'
Steps To Reproduce1. Create a new widget, 2. clear the multiple select-input-field 3. save the widget and open it again to edit 4. the default value is always select - to delete this value is not possible
TagsNo tags attached.


[email protected]

2019-06-19 15:34



2019-06-21 18:15

administrator   ~0012921

Visual CMS in this case is designed to not allow empty fields to prevent display errors.
I acknowledge the issue as a feature request.