Allow quota of 0 again

Regression from f1fccaca06

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-10-04 15:40:39 +02:00 committed by Lukas Reschke
parent 3f352d5f3b
commit 6efa0b86d0
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
1 changed files with 1 additions and 1 deletions

View File

@ -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}));