Merge pull request #1053 from nextcloud/set-quota-non-int

fix setting quota to default or unlimited
This commit is contained in:
Lukas Reschke 2016-08-26 14:56:53 +02:00 committed by GitHub
commit 00bb9294ed

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