Skip to content

Commit

Permalink
Merge pull request #1053 from nextcloud/set-quota-non-int
Browse files Browse the repository at this point in the history
fix setting quota to default or unlimited
  • Loading branch information
LukasReschke committed Aug 26, 2016
2 parents 63addaa + abb3127 commit 00bb929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion settings/js/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand Down

0 comments on commit 00bb929

Please sign in to comment.