Skip to content

"Compact month view": only one participant is displayed #614

@fangebee

Description

@fangebee

Hi, we found a bug in master.

The "compact month view" (view type "L"?) displays events of only one of the selected participants (the last participant in the list actually).

We managed to fix this issue with the following path:

--- a/view_l.php
+++ b/view_l.php
@@ -76,9 +76,9 @@ $e_save = $re_save = [];
 $events = $repeated_events = [];
 foreach ( $viewusers as $i ) {
   /* Pre-Load the repeated events for quicker access */
-  $re_save = read_repeated_events ( $i, $startdate, $enddate, '' );
+  $re_save = array_merge ( $re_save, read_repeated_events ( $i, $startdate, $enddate, '' ) );
   /* Pre-load the non-repeating events for quicker access */
-  $e_save = read_events ( $i, $startdate, $enddate );
+  $e_save = array_merge ( $e_save, read_events ( $i, $startdate, $enddate ) );
 }
 
 for ( $i = 0, $cnt = count ( $e_save ); $i < $cnt; $i++ ) {

I'm preparing a proper PR...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions