mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-27 18:33:39 +01:00
parent
91672abce1
commit
7fac8143c6
@ -310,6 +310,14 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
'label' => $title,
|
||||
'app' => $data['app']
|
||||
);
|
||||
if(isset($data['info']))
|
||||
{
|
||||
$info = ExecMethod($data['info'], $id);
|
||||
if(count($info) > 0)
|
||||
{
|
||||
$value = array_merge($value, array_pop($info));
|
||||
}
|
||||
}
|
||||
if(is_array($value['label']))
|
||||
{
|
||||
$value = array_merge($value, $value['label']);
|
||||
@ -342,6 +350,12 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
$value['fname'] = $contact['n_given'];
|
||||
}
|
||||
}
|
||||
// Add email
|
||||
if(isset($value['email']) || isset($contact['email']) || isset($contact['email_home']))
|
||||
{
|
||||
$email = \EGroupware\Api\Mail::stripRFC822Addresses(array($value['email'] ?: $contact['email'] ?: $contact['email_home']));
|
||||
$value['label'] .= $email ? (' <' . $email[0] . '>') : "";
|
||||
}
|
||||
if($id < 0)
|
||||
{
|
||||
$value['resources'] = array_map('strval', $GLOBALS['egw']->accounts->members($id, true));
|
||||
|
Loading…
Reference in New Issue
Block a user