summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public_html/js/kolab_admin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index c2ee52c..2433c10 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -764,7 +764,7 @@ function kolab_admin()
// quota inputs
$('input[data-type="quota"]', form).each(function() {
var unit = $('select[name="' + this.name + '-unit"]').val();
- if (unit)
+ if (unit && this.value)
data.json[this.name] = this.value + unit;
delete data.json[this.name + '-unit'];
});