Commit 578e390b authored by Vincent Petry's avatar Vincent Petry Committed by GitHub
Browse files

Merge pull request #26979 from owncloud/fix-26975

Allow revert quota to Unlimited. 
parents 1adc9830 ce074fdd
......@@ -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