diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-18 13:04:16 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-18 13:04:16 +0000 |
| commit | cf4b66c4ba301423a687c05c76ae6196be734ddd (patch) | |
| tree | a291129325c92b42248bb60f0d711649ee5807a4 | |
| parent | f40943b72e79279f47c49c46d790eeead93a98f2 (diff) | |
- Fix setting user name in 'new_user_identity' plugin (#1486137)
git-svn-id: https://svn.roundcube.net/trunk@2967 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/CHANGELOG | 1 | ||||
| -rw-r--r-- | roundcubemail/plugins/new_user_identity/new_user_identity.php | 6 |
2 files changed, 2 insertions, 5 deletions
diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 13be2ce2e..36b6335d6 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG RoundCube Webmail =========================== +- Fix setting user name in 'new_user_identity' plugin (#1486137) - Fix incorrect count of new messages in folder list when using multiple IMAP clients (#1485995) - Fix all folders checking for new messages with disabled caching (#1486128) - Support skins in 'archive' and 'markasjunk' plugins diff --git a/roundcubemail/plugins/new_user_identity/new_user_identity.php b/roundcubemail/plugins/new_user_identity/new_user_identity.php index 75595693c..78c99522d 100644 --- a/roundcubemail/plugins/new_user_identity/new_user_identity.php +++ b/roundcubemail/plugins/new_user_identity/new_user_identity.php @@ -19,10 +19,6 @@ * // When automatically setting a new users's full name in their * // new identity, match the user's login name against this field. * $rcmail_config['new_user_identity_match'] = 'uid'; - * - * // Use the value in this field to automatically set a new users's - * // full name in their new identity. - * $rcmail_config['new_user_identity_field'] = 'name'; */ class new_user_identity extends rcube_plugin { @@ -40,7 +36,7 @@ class new_user_identity extends rcube_plugin $ldap->prop['search_fields'] = array($match); $results = $ldap->search($match, $args['user'], TRUE); if (count($results->records) == 1) { - $args['user_name'] = $results->records[0][$rcmail->config->get('new_user_identity_field')]; + $args['user_name'] = $results->records[0]['name']; } } return $args; |
