summaryrefslogtreecommitdiff
path: root/roundcubemail
diff options
context:
space:
mode:
authorjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-11 00:38:08 +0000
committerjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-11 00:38:08 +0000
commitc878e5dc4ea5be194cea58dda34d2100f9ec6bf0 (patch)
treec869a59dcefe54e013f622cf06bd3bc2b3f0b998 /roundcubemail
parentbe238ce5aad5c5a828cc616bf085dc9d5cb763e9 (diff)
implemented making the search fields drop down names nice
git-svn-id: https://svn.roundcube.net/trunk@99 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail')
-rw-r--r--roundcubemail/config/main.inc.php.dist2
-rw-r--r--roundcubemail/program/steps/addressbook/ldapsearchform.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/config/main.inc.php.dist b/roundcubemail/config/main.inc.php.dist
index e7ccc913d..14f6eaa29 100644
--- a/roundcubemail/config/main.inc.php.dist
+++ b/roundcubemail/config/main.inc.php.dist
@@ -138,7 +138,7 @@ $rcmail_config['ldap_public'] = false;
$rcmail_config['ldap_public']['Verisign'] = array('hosts' => array('directory.verisign.com'),
'port' => 389,
'base_dn' => '',
- 'search_fields' => array('mail', 'cn'),
+ 'search_fields' => array('Email' => 'mail', 'Name' => 'cn'),
'name_field' => 'cn',
'mail_field' => 'mail',
'scope' => 'sub',
diff --git a/roundcubemail/program/steps/addressbook/ldapsearchform.inc b/roundcubemail/program/steps/addressbook/ldapsearchform.inc
index 036ade6c8..763e9f3a9 100644
--- a/roundcubemail/program/steps/addressbook/ldapsearchform.inc
+++ b/roundcubemail/program/steps/addressbook/ldapsearchform.inc
@@ -78,7 +78,7 @@ function rcmail_ldap_public_search_form($attrib)
$search_fields = new select(array('name' => $field_name,
'id' => $field_id));
- $search_fields->add($server['search_fields'], $server['search_fields']);
+ $search_fields->add(array_keys($server['search_fields']), array_values($server['search_fields']));
$out .= '<tr><td class="title"><label for="' . $field_id . '">' .
rep_specialchars_output(rcube_label('ldappublicsearchfield')) .
"</label></td><td>" . $search_fields->show() . "</td></tr>\n";