mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
fix setting quota to default or unlimited
This commit is contained in:
parent
a9184287e6
commit
38a0492c64
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,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}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue