Loading...
 
Skip to main content

Features / Usability


Is there an event limit for the calendar_new module?

I am using the mini-calendar (calendar_new) module in Tiki 5.0 to aggregate events from 8 calendars. In the month view of the mini-calendar, no event links or popups are displayed after mid- to late-month, even though the events exist and can be seen on the main calendar. If I switch to week mode, the previously invisible events re-appear in the mini-calendar (links and popups). If I delete an event from the calendar, I can see one additional day forward in the mini-calendar. If I restrict the mini-calendar to fewer calendars (and thus events) I can see all the appropriate events. Thus it seems as if there is a limit on the events that can be handled by this module.

FWIW, I have a lot of recurrent weekly events in the calendar, and maybe 60+ events per month. My event links in the mini-calendar disappear after about 35-50 events have been displayed in a given month.

Is this a bug? And is it fixable?

There is a limit hard coded in the code
50
Change in lib/calendar/calendarlib.php in the function getCalendar the 50
Do not me ask why somebody put this limit....

This was a relatively simple fix. I edited the comment and the "business" line shown below in lib/calendar/calendarlib.php to allow for 255 events. (I suppose you could make this larger if necessary)

//FIXME : maxrecords = 255
$listtikievents = $this->list_items_by_day($calIds, $user, $viewstart, $viewend, 0, 255);