From 239689036a7fa7f7c0f0f0a7873224a4454c01f5 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 27 Sep 2024 13:30:05 +0200 Subject: [PATCH] only change title for private events on server-side --- calendar/inc/class.calendar_bo.inc.php | 2 +- calendar/js/et2_widget_event.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_bo.inc.php b/calendar/inc/class.calendar_bo.inc.php index 907d6cd28c..80622a37bc 100644 --- a/calendar/inc/class.calendar_bo.inc.php +++ b/calendar/inc/class.calendar_bo.inc.php @@ -838,7 +838,7 @@ class calendar_bo 'uid' => $event['uid'], 'etag' => $event['etag'], 'participants' => array_intersect_key($event['participants'],array_flip($allowed_participants)), - 'public'=> 0, + 'public'=> $event['public'], 'category' => $event['category'], // category is visible anyway, eg. by using planner by cat 'non_blocking' => $event['non_blocking'], 'caldav_name' => $event['caldav_name'], diff --git a/calendar/js/et2_widget_event.ts b/calendar/js/et2_widget_event.ts index 907c01309b..60804862cd 100644 --- a/calendar/js/et2_widget_event.ts +++ b/calendar/js/et2_widget_event.ts @@ -362,7 +362,7 @@ export class et2_calendar_event extends et2_valueWidget implements et2_IDetached this.body.toggleClass('calendar_calEventBodySmall', event.whole_day_on_top || false); // Header - const title = !event.is_private ? egw.htmlspecialchars(event['title']) : egw.lang('private'); + const title = egw.htmlspecialchars(event['title']); this.title .html('' + this._get_timespan(event) + '
')