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:
parent
60590af20a
commit
6468bd1a12
|
@ -301,7 +301,7 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
// listbox
|
// listbox
|
||||||
holder = new ListBox();
|
holder = new ListBox(field.isMultiSelection());
|
||||||
|
|
||||||
// if it is not mandatory, add a disabled option
|
// if it is not mandatory, add a disabled option
|
||||||
if(!field.getMandatory()){
|
if(!field.getMandatory()){
|
||||||
|
@ -323,9 +323,6 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
if(field.getDefaultValue() != null)
|
if(field.getDefaultValue() != null)
|
||||||
((ListBox)holder).setSelectedValue(field.getDefaultValue());
|
((ListBox)holder).setSelectedValue(field.getDefaultValue());
|
||||||
|
|
||||||
// check if multiple selection is allowed
|
|
||||||
((ListBox)holder).setMultipleSelect(field.isMultiSelection());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue