Commit ce074fdd authored by Victor Dubiniuk's avatar Victor Dubiniuk
Browse files

Allow revert quota to Unlimited. Fixes #26975

parent 1adc9830
......@@ -524,7 +524,10 @@ var UserList = {
if (quota === 'other') {
return;
}
if (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) {
if (
['default', 'none'].indexOf(quota) === -1
&& (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}));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment