From 6efa0b86d0f3ed48d32fa49ed363c5079a13cefb Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 4 Oct 2017 15:40:39 +0200 Subject: [PATCH] Allow quota of 0 again Regression from f1fccaca0605a5d183f78b2c39d2e09a54753787 Signed-off-by: Joas Schilling --- settings/js/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 4a4faf13ec..af41790a7c 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}));