mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
parent
91672abce1
commit
7fac8143c6
@ -308,8 +308,16 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
$value = array(
|
||||
'value' => substr($id, 0, 1) == $type ? $id : $type . $id,
|
||||
'label' => $title,
|
||||
'app' => $data['app']
|
||||
'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