0001-Bug-499-Fix-Do-not-fetch-username-from-user-datatabl.patch

Hector Sanjuan, 02/25/2011 03:29 PM

Download (1.19 KB)

View differences:

src/sunstone/public/js/one-ui_views.js
2180 2180
//Crawls the user dataTable for that. If such user is not found,
2181 2181
//we return the uid.
2182 2182
function getUserName(uid){
2183
    nodes = dataTable_users.fnGetData();
2184 2183
    user = "uid "+uid;
2185
    $.each(nodes,function(){
2186
       if (uid == this[1]) {
2187
           user = this[2];
2188
           return false;
2189
       }
2190
    });
2184
    if (dataTable_users != null){
2185
        nodes = dataTable_users.fnGetData();
2186
        $.each(nodes,function(){
2187
            if (uid == this[1]) {
2188
            user = this[2];
2189
            return false;
2190
            }
2191
        });
2192
    };
2193
    
2191 2194
    return user;
2192 2195

  
2193 2196
}
2194
-