diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-08-26 14:56:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 14:56:53 +0200 |
commit | 00bb9294eddafd362042152ac7ab9ab0ec716ac3 (patch) | |
tree | f2d3ae57f214700dc4fea57a03aa6fc081bfb8af /settings | |
parent | 63addaa6c6b2f7b9b963aa224453fb25d8fc3d58 (diff) | |
parent | abb3127ff23597f9342ec1dff9ae28722b88c551 (diff) | |
download | nextcloud-server-00bb9294eddafd362042152ac7ab9ab0ec716ac3.tar.gz nextcloud-server-00bb9294eddafd362042152ac7ab9ab0ec716ac3.zip |
Merge pull request #1053 from nextcloud/set-quota-non-int
fix setting quota to default or unlimited
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
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})); |