minor fix

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@131452 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-09-16 10:36:36 +00:00
parent 60590af20a
commit 6468bd1a12
1 changed files with 1 additions and 4 deletions

View File

@ -301,7 +301,7 @@ public class MetaDataFieldSkeleton extends Composite{
}else{
// listbox
holder = new ListBox();
holder = new ListBox(field.isMultiSelection());
// if it is not mandatory, add a disabled option
if(!field.getMandatory()){
@ -323,9 +323,6 @@ public class MetaDataFieldSkeleton extends Composite{
if(field.getDefaultValue() != null)
((ListBox)holder).setSelectedValue(field.getDefaultValue());
// check if multiple selection is allowed
((ListBox)holder).setMultipleSelect(field.isMultiSelection());
}
break;