Skip to content

Commit 578e390

Browse files
author
Vincent Petry
authored
Merge pull request #26979 from owncloud/fix-26975
Allow revert quota to Unlimited.
2 parents 1adc983 + ce074fd commit 578e390

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

settings/js/users/users.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,10 @@ var UserList = {
524524
if (quota === 'other') {
525525
return;
526526
}
527-
if (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0) {
527+
if (
528+
['default', 'none'].indexOf(quota) === -1
529+
&& (isNaN(parseInt(quota, 10)) || parseInt(quota, 10) < 0)
530+
) {
528531
// the select component has added the bogus value, delete it again
529532
$select.find('option[selected]').remove();
530533
OC.Notification.showTemporary(t('core', 'Invalid quota value "{val}"', {val: quota}));

0 commit comments

Comments
 (0)