Menu

#664 < This Month's Events > shows only 1st occurence

open
nobody
Month (47)
5
2016-11-15
2010-08-11
dale
No

I have entries that repeat more than once monthly. In month view, "This Month's Events" shows only the 1st occurrence of these items. I have observed this behavior with 2.31 and 2.4 RC7. The calendar was built with Lightning 1.0b2.

Is this intended behavior or a bug?

Discussion

  • Sherman

    Sherman - 2011-07-22

    This happens for me too. I have 2.4 RC7 and using Lightning 1.0b4. The reoccurring events show up in the calendar fine but print view and list view at the bottom only shows 1st event and none of the others. I am also using Davical as the go between. Lightning adds to Davical via caldav and then I export an ics and save in the calendar directory. I will attach an ics file for review.

     
  • Sherman

    Sherman - 2011-07-22

    Ok can't attach so here.

    BEGIN:VCALENDAR
    PRODID:-//davical.org//NONSGML AWL Calendar//EN
    VERSION:2.0
    CALSCALE:GREGORIAN
    X-WR-CALNAME:John Tarleton Football
    BEGIN:VEVENT
    CREATED:20110722T144527Z
    LAST-MODIFIED:20110722T144752Z
    DTSTAMP:20110722T144752Z
    UID:f76a2ad4-a1fd-47ad-81e3-70c5e62b7ee7
    SUMMARY:Rocky Top Kick-Off Classic
    DTSTART;TZID=America/New_York:20110806T080000
    DTEND;TZID=America/New_York:20110806T220000
    LOCATION:John Tarleton Park
    DESCRIPTION:Rocky Top Kick-Off Classic Youth Football Tournament. Field
    s #1-5 will be in use.
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VEVENT
    CREATED:20110722T144805Z
    LAST-MODIFIED:20110722T144854Z
    DTSTAMP:20110722T144854Z
    UID:b6416a26-decf-4a2b-99fb-f8fc1be15757
    SUMMARY:Rocky Top Kick-Off Classic
    DTSTART;TZID=America/New_York:20110807T080000
    DTEND;TZID=America/New_York:20110807T200000
    LOCATION:John Tarleton Park
    DESCRIPTION:Rocky Top Kick-Off Classic Youth Football Tournament.
    TRANSP:OPAQUE
    END:VEVENT
    BEGIN:VEVENT
    CREATED:20110722T173500Z
    LAST-MODIFIED:20110722T173600Z
    DTSTAMP:20110722T173600Z
    UID:9e4412eb-45e9-4e14-a634-9c0068cb4aad
    SUMMARY:Knox Metro Youth Football
    RRULE:FREQ=WEEKLY;UNTIL=20111114;BYDAY=MO,TU,TH,SA
    DTSTART;VALUE=DATE:20110822
    DTEND;VALUE=DATE:20110823
    TRANSP:TRANSPARENT
    END:VEVENT
    BEGIN:VTIMEZONE
    TZID:America/New_York
    X-LIC-LOCATION:America/New_York
    BEGIN:DAYLIGHT
    TZOFFSETFROM:-0500
    TZOFFSETTO:-0400
    TZNAME:EDT
    DTSTART:19700308T020000
    RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3
    END:DAYLIGHT
    BEGIN:STANDARD
    TZOFFSETFROM:-0400
    TZOFFSETTO:-0500
    TZNAME:EST
    DTSTART:19701101T020000
    RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11
    END:STANDARD
    END:VTIMEZONE
    END:VCALENDAR

     
  • Bill Roberts

    Bill Roberts - 2016-10-07

    I saw this issue too and couldn't decide if it was intentional behaviour or not. Either way, it wasn't doing what I wanted which was to:
    A) list recurring events every time they occur in a month; and
    B) list events that span several days once per day for each day they covered.

    I've probably done this in the wrong way (I'm not a PHP guru), but this change worked for me so I'll post it here in case someone else finds it useful.

    [functions]# diff template.php-orig template.php
    82,85c82,88
    < if (isset($seen_events[$new_key2]) && isset($new_val2['spans_day']) && $new_val2['spans_day'] == 1){
    < $new_val2['event_text'] .= ' second instance of '.$new_key2;
    < continue;
    < }


                                               if (isset($seen_events[$new_key2])) {
                                                 // Include in list if we've already seen it AND
                                                 // (it spans more than one day OR it's a recurring event) 
                                                 if (($new_val2['spans_day'] != 1) && (!isset($new_val2['recur']))) {
                                                    continue;
                                                  }
                                                }
    

    1094c1097,1103
    < if (isset($seen_events[$uid]) && @$val['spans_day'] == 1) continue;


                                               if (isset($seen_events[$uid])) {
                                                 // Include in list if we've already seen it AND
                                                 // (it spans more than one day OR it's a recurring event) 
                                                 if ((@$val['spans_day'] != 1) && (!isset($val['recur']))) {
                                                    continue;
                                                  }
                                                }
    
     
  • Thomas Wilhelmi

    Thomas Wilhelmi - 2016-11-15

    Hi Bill,
    this patch works for me too! Great! And: You ARE a PHP Guru ;-)
    Thanks,
    Thomas

     

Log in to post a comment.