fixed full name display

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@92899 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-03-10 17:16:48 +00:00
parent 1e82f26fb9
commit 44830c6da2
1 changed files with 5 additions and 1 deletions

View File

@ -336,7 +336,11 @@ public class MultiDragContact extends Dialog {
private ExtendedInfoContactModel convetFromInfoContactModel(InfoContactModel infoContactModel){
if(infoContactModel!=null){
ExtendedInfoContactModel ext = new ExtendedInfoContactModel(infoContactModel.getId(), infoContactModel.getLogin(), infoContactModel.getName(), infoContactModel.isGroup());
String fullName = infoContactModel.getName();
if(fullName==null || fullName.isEmpty())
fullName = infoContactModel.getLogin();
ExtendedInfoContactModel ext = new ExtendedInfoContactModel(infoContactModel.getId(), infoContactModel.getLogin(), fullName, infoContactModel.isGroup());
ext.setIcon();
return ext;
}