summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-07 07:05:26 (GMT)
committerAleksander Machniak <alec@alec.pl>2014-08-07 07:05:26 (GMT)
commit44ee1712b61ba9c23cae19b99140d25666cb28ce (patch)
treea6c6596a5f247b6df8a756a02a7a41b0ec69d607
parent52d4a612083ed8ba413dd9a1939c9ae3cfbe77a7 (diff)
downloadkolab-wap-44ee1712b61ba9c23cae19b99140d25666cb28ce.tar.gz
Fix "Cannot read property 'match' of undefined" (#3267)
-rw-r--r--public_html/js/kolab_admin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public_html/js/kolab_admin.js b/public_html/js/kolab_admin.js
index 8c3df3c..67c46f1 100644
--- a/public_html/js/kolab_admin.js
+++ b/public_html/js/kolab_admin.js
@@ -1896,8 +1896,8 @@ function kolab_admin()
this.trigger_event('form-load', 'acl-form');
// reset form elements
- subject_select.val(acl.subject.match(/^(anyone|anonymous)$/i) ? acl.subject : 'user').change();
- subject_input.val(subject_select.val() == 'user' ? acl.subject : '');
+ subject_select.val(acl.subject && acl.subject.match(/^(anyone|anonymous)$/i) ? acl.subject : 'user').change();
+ subject_input.val(acl.subject && subject_select.val() == 'user' ? acl.subject : '');
// Not yet implemented
/* epoch_input.val(this.unix_to_date(acl.epoch, true));
epoch_input.datetimepicker({