summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-09-10 12:03:15 (GMT)
committerAleksander Machniak <alec@alec.pl>2013-09-10 12:03:15 (GMT)
commitbb1f1eedbf737e44af81413beb50c3f442ee2dd5 (patch)
tree47fa21d247809925751cadb6a97129b476a8ceee
parentc3844db0cb15b058828738f359f25debcf995d23 (diff)
downloadkolab-wap-bb1f1eedbf737e44af81413beb50c3f442ee2dd5.tar.gz
Fix issue where empty mailquota value was sent as "kb" (Bug #2110)
-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'];
});