#13079 only apply reduce events comments with group events

This commit is contained in:
Daniel Cebrian 2024-03-21 11:26:36 +01:00
parent 47895f5f66
commit 8c5b56f055
1 changed files with 6 additions and 1 deletions

View File

@ -484,7 +484,12 @@ if (is_ajax() === true) {
if (empty($events) === false) {
$redirection_form_id = 0;
$events_comments = reduce_events_comments($events, $filter);
if ((int) $filter['group_rep'] > 0) {
$events_comments = [];
} else {
$events_comments = reduce_events_comments($events, $filter);
}
$data = array_reduce(
$events,
function ($carry, $item) use ($table_id, &$redirection_form_id, $filter, $compact_date, $external_url, $compact_name_event, $regex, $events_comments) {