From 9d7e48fcaa5f83eb3103bfe96a0b8fa05a70e08a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 8 May 2008 20:19:20 +0000 Subject: [PATCH] use a cn given+family name, instead of link title for contacts --- addressbook/inc/class.bocontacts.inc.php | 1 + calendar/inc/class.boical.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.bocontacts.inc.php b/addressbook/inc/class.bocontacts.inc.php index c8e5acabae..d9e61f567d 100755 --- a/addressbook/inc/class.bocontacts.inc.php +++ b/addressbook/inc/class.bocontacts.inc.php @@ -926,6 +926,7 @@ class bocontacts extends socontacts 'email' => $contact['email'] ? $contact['email'] : $contact['email_home'], 'rights' => EGW_ACL_READ_FOR_PARTICIPANTS, 'name' => $this->link_title($contact), + 'cn' => trim($contact['n_given'].' '.$contact['n_family']), ); } //echo "

calendar_info(".print_r($ids,true).")="; _debug_array($data); diff --git a/calendar/inc/class.boical.inc.php b/calendar/inc/class.boical.inc.php index 89bade95b6..1f01af508c 100644 --- a/calendar/inc/class.boical.inc.php +++ b/calendar/inc/class.boical.inc.php @@ -219,7 +219,7 @@ break; }; $parameters['ATTENDEE'][] = array( - 'CN' => $info['name'], + 'CN' => $info['cn'] ? $info['cn'] : $info['name'], 'ROLE' => $role, 'PARTSTAT' => $status, 'CUTYPE' => $cutype,