mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Calendar: fix email addresses in calendar owner label for accounts
This commit is contained in:
parent
aaa8a4a3f9
commit
9ad9305844
@ -333,9 +333,8 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
|||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
case '':
|
case '':
|
||||||
// check if link-search already returned either icon or (l|f)name and only if not, query contact again
|
// Query contact / account for email address
|
||||||
if(!(isset($value['icon']) || isset($value['lname']) && isset($value['fname'])) &&
|
if($contact = $contacts_obj->read($type === '' ? 'account:' . $id : $data['res_id'], true))
|
||||||
($contact = $contacts_obj->read($type === '' ? 'account:' . $id : $data['res_id'], true)))
|
|
||||||
{
|
{
|
||||||
if(Api\Contacts::hasPhoto($contact))
|
if(Api\Contacts::hasPhoto($contact))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user