fix setting quota to default or unlimited

This commit is contained in:
Robin Appelman 2016-08-25 15:55:30 +02:00
parent 8d8366762b
commit abb3127ff2
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ var UserList = {
if (quota === 'other') {
return;
}
if (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) {
if ((quota !== 'default' && quota !=="none") && (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)) {
// 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}));