Allow quota of 0 again
Regression from f1fccaca06
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
895336a3f3
commit
968a1bf9ae
|
@ -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}));
|
||||
|
|
Loading…
Reference in New Issue