From a0530a6ec0cb464ec6eaa63fd211c2ffbe6db9ad Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 8 Jun 2008 18:17:09 +0000 Subject: - option to disable autocompletion from selected LDAP address books (#1484922 --- program/steps/mail/compose.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'program/steps/mail/compose.inc') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index c56bbd576..855066b0c 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -829,10 +829,11 @@ if (isset($CONFIG['ldap_public'])) /* LDAP autocompletion */ foreach ($CONFIG['ldap_public'] as $ldapserv_config) { - if ($ldapserv_config['fuzzy_search'] != 1) + if ($ldapserv_config['fuzzy_search'] != 1 || + $ldapserv_config['global_search'] != 1) { continue; - } + } $LDAP = new rcube_ldap($ldapserv_config); $LDAP->connect(); @@ -856,6 +857,8 @@ if (isset($CONFIG['ldap_public'])) if ($a_contacts) { $OUTPUT->set_env('contacts', $a_contacts); - } + } + $OUTPUT->send('compose'); + ?> -- cgit v1.2.3