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:
parent
031896c371
commit
d84bc04eb2
|
@ -426,8 +426,9 @@ public class CreateDatasetForm extends Composite{
|
||||||
if(groups == null){
|
if(groups == null){
|
||||||
setAlertBlock("Error while retrieving groups, try later", AlertType.ERROR, true);
|
setAlertBlock("Error while retrieving groups, try later", AlertType.ERROR, true);
|
||||||
}else{
|
}else{
|
||||||
if(groups.isEmpty())
|
if(groups.isEmpty()){
|
||||||
return;
|
// nothing ...
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
|
|
||||||
// add groups
|
// add groups
|
||||||
|
@ -858,7 +859,7 @@ public class CreateDatasetForm extends Composite{
|
||||||
|
|
||||||
String key = customEntry.getKey();
|
String key = customEntry.getKey();
|
||||||
String value = customEntry.getValue();
|
String value = customEntry.getValue();
|
||||||
|
|
||||||
if(value != null && !value.isEmpty()){
|
if(value != null && !value.isEmpty()){
|
||||||
List<String> valuesForThisField = null;
|
List<String> valuesForThisField = null;
|
||||||
if(customFieldsMap.containsKey(key))
|
if(customFieldsMap.containsKey(key))
|
||||||
|
|
Loading…
Reference in New Issue