From 9ad930584406ca8f2026a3b16be3b30a2faa8f12 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 3 May 2023 14:58:16 -0600 Subject: [PATCH] Calendar: fix email addresses in calendar owner label for accounts --- calendar/inc/class.calendar_owner_etemplate_widget.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php index e53edf6a7d..8a5f89df54 100644 --- a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php +++ b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php @@ -333,9 +333,8 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist break; case 'c': case '': - // check if link-search already returned either icon or (l|f)name and only if not, query contact again - if(!(isset($value['icon']) || isset($value['lname']) && isset($value['fname'])) && - ($contact = $contacts_obj->read($type === '' ? 'account:' . $id : $data['res_id'], true))) + // Query contact / account for email address + if($contact = $contacts_obj->read($type === '' ? 'account:' . $id : $data['res_id'], true)) { if(Api\Contacts::hasPhoto($contact)) {