summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-08-25 15:55:30 +0200
committerRobin Appelman <robin@icewind.nl>2016-08-25 15:55:30 +0200
commitabb3127ff23597f9342ec1dff9ae28722b88c551 (patch)
tree6b34555a7df32761c38941419c4bab3046126ce9 /settings/js
parent8d8366762be728f10af7ae9e465dcdba727d0eaf (diff)
downloadnextcloud-server-abb3127ff23597f9342ec1dff9ae28722b88c551.tar.gz
nextcloud-server-abb3127ff23597f9342ec1dff9ae28722b88c551.zip
fix setting quota to default or unlimited
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/users/users.js2
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}));