summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-10-24 10:20:26 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-10-24 10:20:26 (GMT)
commitc6265de7e7c2d16935256dd9a0c7d46b1f20f6ec (patch)
treeaa8360160bef9062a83083764e53b880232d1ff2
parent1e36295ff2a2ff54e3f879e36450e2552e3a2956 (diff)
downloadkolab-wap-c6265de7e7c2d16935256dd9a0c7d46b1f20f6ec.tar.gz
Fix invalid text in Validation column after adding attribute with unset validation type
-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 44b62b9..abc2498 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -2891,7 +2891,7 @@ function kolab_admin()
$('select[name="attr_type"]').val(type);
$('select[name="attr_value"]').val(attr ? data.valtype : 'normal');
- $('select[name="attr_validate"]').val(data.validate || '');
+ $('select[name="attr_validate"]').val(data.validate || 'default');
$('input[name="attr_default"]').val(data['default'] || '');
$('input[name="attr_optional"]').prop('checked', attr ? data.optional : false);
$('input[name="attr_data"]').val(data.data || '');