listbox validator fixed
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@148316 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b9b1be284b
commit
b54b443e19
|
@ -468,6 +468,9 @@ public class MetaDataFieldSkeleton extends Composite{
|
||||||
|
|
||||||
List<String> listboxValues = getFieldCurrentValue();
|
List<String> listboxValues = getFieldCurrentValue();
|
||||||
|
|
||||||
|
if(listboxValues.isEmpty() && field.getMandatory())
|
||||||
|
return MANDATORY_ATTRIBUTE_MISSING;
|
||||||
|
|
||||||
for (String value : listboxValues) {
|
for (String value : listboxValues) {
|
||||||
if(!field.getMandatory()){
|
if(!field.getMandatory()){
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue