summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authortomneedham <tom@owncloud.com>2014-08-04 13:55:28 +0000
committertomneedham <tom@owncloud.com>2014-08-04 13:55:33 +0000
commit7c39c02ee59ef20d1165429cac13b884bf85744e (patch)
treee0ae3349b67931f27cbf89efa835b39b1072405b /settings/js/users
parent65903a012a05d012b463d944594afa0104386426 (diff)
downloadnextcloud-server-7c39c02ee59ef20d1165429cac13b884bf85744e.tar.gz
nextcloud-server-7c39c02ee59ef20d1165429cac13b884bf85744e.zip
Set group usercount to 0, not '', fixes #9782
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/groups.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 58f77705121..fe06edff34d 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -30,8 +30,10 @@ GroupList = {
var $groupLiElement = $(groupLiElement);
if (usercount === undefined || usercount === 0 || usercount < 0) {
usercount = '';
+ $groupLiElement.data('usercount', 0);
+ } else {
+ $groupLiElement.data('usercount', usercount);
}
- $groupLiElement.data('usercount', usercount);
$groupLiElement.find('.usercount').text(usercount);
},