Changeset 4959 in subversion


Ignore:
Timestamp:
Jul 24, 2011 6:14:13 AM (22 months ago)
Author:
alec
Message:
  • DOn't generate contact name here, it's not required
Location:
trunk/roundcubemail/program/steps/addressbook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/addressbook/func.inc

    r4934 r4959  
    415415            $content = ''; 
    416416 
    417             // unset display name if it is composed from name parts (same composition function as in save.inc) 
     417            // unset display name if it is composed from name parts 
    418418            if ($record['name'] == rcube_addressbook::compose_display_name(array('name' => '') + (array)$record)) 
    419419              unset($record['name']); 
  • trunk/roundcubemail/program/steps/addressbook/save.inc

    r4913 r4959  
    137137} 
    138138 
    139 // let a dedicated function or a plugin compose the full name if empty 
    140 if (empty($a_record['name'])) { 
    141     $a_record['name'] = rcube_addressbook::compose_display_name($a_record); 
    142 } 
    143  
    144139 
    145140// do input checks (delegated to $CONTACTS instance) 
     
    222217  $existing = false; 
    223218  foreach ($CONTACTS->get_col_values('email', $a_record, true) as $email) { 
    224       if (($res = $CONTACTS->search('email', $email, false, false)) && $res->count) { 
     219      if (($res = $CONTACTS->search('email', $email, false, false, true)) && $res->count) { 
    225220          $OUTPUT->show_message('contactexists', 'notice', null, false); 
    226221          break; 
Note: See TracChangeset for help on using the changeset viewer.