From 96d86ce97a1a63d405db343f5695de26b7d4a673 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 27 May 2017 12:16:08 +0200 Subject: [PATCH] Fixed issue on userinfos cache --- assets/js/user/userInfos.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/user/userInfos.js b/assets/js/user/userInfos.js index 8f2f7fb5..eb65a75b 100644 --- a/assets/js/user/userInfos.js +++ b/assets/js/user/userInfos.js @@ -25,8 +25,8 @@ ComunicWeb.user.userInfos = { userID = ComunicWeb.user.userLogin.__userID; //First, check if informations are already available in the cache - if(this.usersInfos[userID]){ - afterGetUserInfos(this.usersInfos[userID]); //Then return these informations now + if(this.usersInfos["user-"+userID]){ + afterGetUserInfos(this.usersInfos["user-"+userID]); //Then return these informations now return true; } @@ -48,7 +48,7 @@ ComunicWeb.user.userInfos = { } else { //Save result - ComunicWeb.user.userInfos.usersInfos[""+userID] = result[0]; + ComunicWeb.user.userInfos.usersInfos["user-"+userID] = result[0]; //Return result afterGetUserInfos(result[0]);