summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-10-23 13:40:49 (GMT)
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-11-26 13:29:47 (GMT)
commite9eaf6114dadcc862e8dc18cf9e49908e9fbed89 (patch)
tree48348b705938e783f404789f7df25d0e5f6962db
parent53141e75f644ae0c5500ff15d509d587e7638aa4 (diff)
downloadkolab-wap-e9eaf6114dadcc862e8dc18cf9e49908e9fbed89.tar.gz
Fix handling of empty select values list
-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 99fc6b9..3290bf1 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1737,7 +1737,7 @@ function kolab_admin()
else if (attr.type != 'text')
data.type = attr.type;
- if ((attr.type == 'select' || attr.type == 'multiselect') && attr.values)
+ if ((attr.type == 'select' || attr.type == 'multiselect') && attr.values && attr.values.length)
data.values = attr.values;
if (attr.optional)