Merge pull request #6943 from nextcloud/12-6758

[stable12] Allow quota of 0 again
This commit is contained in:
blizzz 2017-10-25 11:41:39 +02:00 committed by GitHub
commit 469285a505
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ var UserList = {
if (quota === 'other') {
return;
}
if ((quota !== 'default' && quota !=="none") && (!OC.Util.computerFileSize(quota))) {
if (quota !== 'default' && quota !== "none" && OC.Util.computerFileSize(quota) === null) {
// 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}));