]> source.dussan.org Git - archiva.git/commitdiff
fix ugly undefined display
authorOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 00:46:24 +0000 (00:46 +0000)
committerOlivier Lamy <olamy@apache.org>
Sun, 1 Jan 2012 00:46:24 +0000 (00:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1226205 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/roles.js

index c682768805f456a3441e7fe0abd7ce6074c073f1..344d2a6be2e1167b8f4a9e5bce01ff2ed7ae9725 100644 (file)
@@ -162,7 +162,7 @@ $(function() {
       return mapPermission(item);
     }): new Array(mapPermission(data.permissions)) :null;
 
-    return new role(data.name, data.description,data.assignable,childRoleNames,parentRoleNames,users,parentsRolesUsers,permissions);
+    return new role(data.name, data.description?data.description:"",data.assignable,childRoleNames,parentRoleNames,users,parentsRolesUsers,permissions);
   }
 
   activateRolesGridTab=function(){