mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
Bug #499: Fix: Do not fetch username from user datatable if it is null.
(cherry picked from commit 438f3a978c1cb90c07127bb63436d1c5dc4c3672)
This commit is contained in:
parent
4c76798143
commit
f0827d7b51
@ -2180,14 +2180,17 @@ function setupTips(){
|
||||
//Crawls the user dataTable for that. If such user is not found,
|
||||
//we return the uid.
|
||||
function getUserName(uid){
|
||||
nodes = dataTable_users.fnGetData();
|
||||
user = "uid "+uid;
|
||||
$.each(nodes,function(){
|
||||
if (uid == this[1]) {
|
||||
user = this[2];
|
||||
return false;
|
||||
}
|
||||
});
|
||||
if (dataTable_users != null){
|
||||
nodes = dataTable_users.fnGetData();
|
||||
$.each(nodes,function(){
|
||||
if (uid == this[1]) {
|
||||
user = this[2];
|
||||
return false;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return user;
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user