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:
parent
1e82f26fb9
commit
44830c6da2
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue