diff --git a/calendar/inc/class.calendar_uiforms.inc.php b/calendar/inc/class.calendar_uiforms.inc.php index 5736dbacb8..18c4af9875 100644 --- a/calendar/inc/class.calendar_uiforms.inc.php +++ b/calendar/inc/class.calendar_uiforms.inc.php @@ -2420,13 +2420,26 @@ class calendar_uiforms extends calendar_ui { $is_readable = $this->bo->check_perms(Acl::READ,$conflict); + $conflict_participants = $this->bo->participants(array( + 'participants' => array_intersect_key((array)$conflict['participants'],$event['participants']), + ),true,true);// show group invitations too + $conflict_participant_list = []; + foreach($conflict_participants as $c_id => $c_name) + { + $res_info = $this->bo->resource_info($c_id); + + $conflict_participant_list[] = array( + 'id' => $c_id, + 'name' => $c_name, + 'app' => $res_info['app'], + 'type' => $res_info['type'] + ); + } $conflicts[$k] += array( 'icon_participants' => $is_readable ? (count($conflict['participants']) > 1 ? 'users' : 'single') : 'private', 'tooltip_participants' => $is_readable ? implode(', ',$this->bo->participants($conflict)) : '', 'time' => $this->bo->long_date($conflict['start'],$conflict['end'],true), - 'conflicting_participants' => implode(",\n",$this->bo->participants(array( - 'participants' => array_intersect_key((array)$conflict['participants'],$event['participants']), - ),true,true)), // show group invitations too + 'conflicting_participants' => $conflict_participant_list, 'icon_recur' => $conflict['recur_type'] != MCAL_RECUR_NONE ? 'recur' : '', 'text_recur' => $conflict['recur_type'] != MCAL_RECUR_NONE ? lang('Recurring event') : ' ', ); diff --git a/calendar/templates/default/app.css b/calendar/templates/default/app.css index 286376b9df..9233aacc8b 100644 --- a/calendar/templates/default/app.css +++ b/calendar/templates/default/app.css @@ -158,6 +158,10 @@ div.calendar_conflicts { width: 22px; height: 22px; } +.calendar_conflicts table[id*="conflicting_participants"] > tbody > tr.r .et2_label { + /* Color for resources */ + color: blue; +} /* Loader - hide sizing behind overlay*/ #egw-loadin-prompt_calendar::before { diff --git a/calendar/templates/default/conflicts.xet b/calendar/templates/default/conflicts.xet index cbd5f8c19e..11999bb4ac 100644 --- a/calendar/templates/default/conflicts.xet +++ b/calendar/templates/default/conflicts.xet @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + diff --git a/calendar/templates/pixelegg/app.css b/calendar/templates/pixelegg/app.css index f1f1431542..bf26c75b30 100755 --- a/calendar/templates/pixelegg/app.css +++ b/calendar/templates/pixelegg/app.css @@ -167,6 +167,10 @@ div.calendar_conflicts { width: 22px; height: 22px; } +.calendar_conflicts table[id*="conflicting_participants"] > tbody > tr.r .et2_label { + /* Color for resources */ + color: blue; +} /* Loader - hide sizing behind overlay*/ #egw-loadin-prompt_calendar::before { opacity: 1;