From abb3127ff23597f9342ec1dff9ae28722b88c551 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 25 Aug 2016 15:55:30 +0200 Subject: [PATCH] fix setting quota to default or unlimited --- settings/js/users/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/js/users/users.js b/settings/js/users/users.js index 78118d5c5aa..4ce77648826 100644 --- a/settings/js/users/users.js +++ b/settings/js/users/users.js @@ -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})); -- 2.39.5