summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-17 23:53:26 +0000
committerjustinrandell <justinrandell@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-01-17 23:53:26 +0000
commit333d331275cfee0c5326634a903e5f0eb9b542b6 (patch)
tree89b8da607e54d976c30cbe3723db4af5c188cde3
parent6bac58342f8c91f8bc1e44710dce7df98227d2e0 (diff)
fixed the pretty naming of ldap search fields again...
git-svn-id: https://svn.roundcube.net/trunk@110 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/addressbook/ldapsearchform.inc4
-rw-r--r--roundcubemail/skins/default/includes/ldapscripts.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/addressbook/ldapsearchform.inc b/roundcubemail/program/steps/addressbook/ldapsearchform.inc
index 763e9f3a9..5e414ba3e 100644
--- a/roundcubemail/program/steps/addressbook/ldapsearchform.inc
+++ b/roundcubemail/program/steps/addressbook/ldapsearchform.inc
@@ -105,8 +105,8 @@ function rcmail_ldap_public_search_form($attrib)
{
// store the search fields in a js array for each server
$js = '';
- foreach ($server['search_fields'] as $k => $search_field)
- $js .= "'$search_field', ";
+ foreach ($server['search_fields'] as $search_name => $search_value)
+ $js .= "['$search_name', '$search_value'], ";
// store whether this server accepts fuzzy search as last item in array
$js .= $server['fuzzy_search'] ? "'fuzzy'" : "'exact'";
diff --git a/roundcubemail/skins/default/includes/ldapscripts.html b/roundcubemail/skins/default/includes/ldapscripts.html
index 4b911e718..e58fd4d15 100644
--- a/roundcubemail/skins/default/includes/ldapscripts.html
+++ b/roundcubemail/skins/default/includes/ldapscripts.html
@@ -34,8 +34,8 @@ function updateLdapSearchFields(element) {
// the last array value is for fuzzy search, so skip that one
if (i < (server_fields.length - 1)) {
var new_option = document.createElement('option');
- new_option.text = server_fields[i];
- new_option.value = server_fields[i];
+ new_option.text = server_fields[i][0];
+ new_option.value = server_fields[i][1];
// standards compliant browsers
try {