From 3c319d0fd94c3a59f86f9f54850c9cb1c16a0dfd Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 31 Aug 2020 20:23:23 +0300 Subject: [PATCH] debug --- apps/common/main/lib/util/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/common/main/lib/util/utils.js b/apps/common/main/lib/util/utils.js index d74899de3..d58fa1cda 100644 --- a/apps/common/main/lib/util/utils.js +++ b/apps/common/main/lib/util/utils.js @@ -30,8 +30,8 @@ * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode * */ -if (Common === undefined) { - var Common = {}; +if (window.Common === undefined) { + window.Common = {}; } if (Common.Utils === undefined) { @@ -726,7 +726,7 @@ Common.Utils.applyCustomizationPlugins = function(plugins) { Common.Utils.fillUserInfo = function(info, lang, defname) { var _user = info || {}; !_user.id && (_user.id = ('uid-' + Date.now())); - _user.fullname = _.isEmpty(_user.name) ? defname : _user.name; + _user.fullname = !_user.name ? defname : _user.name; return _user; };