minor fix on group retrieval

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@139991 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2016-12-13 16:40:50 +00:00
parent 031896c371
commit d84bc04eb2
1 changed files with 4 additions and 3 deletions

View File

@ -426,8 +426,9 @@ public class CreateDatasetForm extends Composite{
if(groups == null){
setAlertBlock("Error while retrieving groups, try later", AlertType.ERROR, true);
}else{
if(groups.isEmpty())
return;
if(groups.isEmpty()){
// nothing ...
}
else{
// add groups
@ -858,7 +859,7 @@ public class CreateDatasetForm extends Composite{
String key = customEntry.getKey();
String value = customEntry.getValue();
if(value != null && !value.isEmpty()){
List<String> valuesForThisField = null;
if(customFieldsMap.containsKey(key))