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 Morris Jobke
parent 895336a3f3
commit 968a1bf9ae
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 1 deletions

View File

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