Changeset 2967 in subversion


Ignore:
Timestamp:
Sep 18, 2009 9:04:16 AM (4 years ago)
Author:
alec
Message:
  • Fix setting user name in 'new_user_identity' plugin (#1486137)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2959 r2967  
    22=========================== 
    33 
     4- Fix setting user name in 'new_user_identity' plugin (#1486137) 
    45- Fix incorrect count of new messages in folder list when using multiple IMAP clients (#1485995) 
    56- Fix all folders checking for new messages with disabled caching (#1486128) 
  • trunk/roundcubemail/plugins/new_user_identity/new_user_identity.php

    r2401 r2967  
    2020 *  // new identity, match the user's login name against this field. 
    2121 *  $rcmail_config['new_user_identity_match'] = 'uid'; 
    22  *   
    23  *  // Use the value in this field to automatically set a new users's 
    24  *  // full name in their new identity. 
    25  *  $rcmail_config['new_user_identity_field'] = 'name'; 
    2622 */ 
    2723class new_user_identity extends rcube_plugin 
     
    4137            $results = $ldap->search($match, $args['user'], TRUE); 
    4238            if (count($results->records) == 1) { 
    43                 $args['user_name'] = $results->records[0][$rcmail->config->get('new_user_identity_field')]; 
     39                $args['user_name'] = $results->records[0]['name']; 
    4440            } 
    4541        } 
Note: See TracChangeset for help on using the changeset viewer.