[Pkg-owncloud-commits] [owncloud] 05/20: Return correct user count when the group has none
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:57:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 0dfc47c02df7d589c54fa8e840cd740e5460593d
Author: Joas Schilling <nickvergessen at owncloud.com>
Date: Mon Jul 6 13:32:11 2015 +0200
Return correct user count when the group has none
---
settings/js/users/groups.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 298879b..838950b 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -36,7 +36,11 @@ GroupList = {
},
getUserCount: function ($groupLiElement) {
- return parseInt($groupLiElement.data('usercount'), 10);
+ var $userCount = parseInt($groupLiElement.data('usercount'), 10);
+ if (isNaN($userCount)) {
+ $userCount = 0;
+ }
+ return $userCount;
},
modEveryoneCount: function(diff) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list