Skip to content

Commit

Permalink
only change title for private events on server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfbecker committed Sep 27, 2024
1 parent a1958f1 commit 2396890
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion calendar/inc/class.calendar_bo.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ function clear_private_infos(&$event,$allowed_participants = array())
'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'],
Expand Down
2 changes: 1 addition & 1 deletion calendar/js/et2_widget_event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<span class="calendar_calTimespan">' + this._get_timespan(event) + '<br /></span>')
Expand Down

0 comments on commit 2396890

Please sign in to comment.