summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2017-10-22 14:10:55 +0200
committerGitHub <noreply@github.com>2017-10-22 14:10:55 +0200
commitcd80e5dc7ce73ef314de00c2a66a6b455d7b6985 (patch)
treed2a9ad47ee74ca25d9ddf7aa585893047bfed64a /settings
parent2b31b8289169e35be7bb1b129e9a978ddcd8f478 (diff)
parent6efa0b86d0f3ed48d32fa49ed363c5079a13cefb (diff)
downloadnextcloud-server-cd80e5dc7ce73ef314de00c2a66a6b455d7b6985.tar.gz
nextcloud-server-cd80e5dc7ce73ef314de00c2a66a6b455d7b6985.zip
Merge pull request #6758 from nextcloud/allow-0-quota-again
Allow quota of 0 again
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 4a4faf13ec7..af41790a7c4 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -592,7 +592,7 @@ var UserList = {
if (quota === 'other') {
return;
}
- if ((quota !== 'default' && quota !== "none") && (!OC.Util.computerFileSize(quota))) {
+ if (quota !== 'default' && quota !== "none" && OC.Util.computerFileSize(quota) === null) {
// the select component has added the bogus value, delete it again
$select.find('option[selected]').remove();
OC.Notification.showTemporary(t('core', 'Invalid quota value "{val}"', {val: quota}));