Added field null handler
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@115354 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
66672aa9e8
commit
c56ff2882d
|
@ -97,7 +97,8 @@ public class DialogEditProperties extends Dialog{
|
|||
private void saveProperties(final boolean closeOnSuccess){
|
||||
Map<String,String> prp = new HashMap<String, String>(fields.size());
|
||||
for (TextField<String> field : fields) {
|
||||
prp.put(field.getFieldLabel(), field.getValue());
|
||||
String value = field.getValue()!=null?field.getValue():"";
|
||||
prp.put(field.getFieldLabel(), value);
|
||||
}
|
||||
AppControllerExplorer.rpcWorkspaceService.setGcubeItemProperties(item.getIdentifier(), prp, new AsyncCallback<Void>() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue