Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event_Calendar $LiveCalendarWidget Bugfix for 2.4


Go to End


1052 Views

Avatar
silverseba

Community Member, 26 Posts

17 June 2010 at 9:45pm

I discovered a minto Bug in the event_calendat module in the 2.4 trunk.
When using $LiveCalendarWidget the 'CurrentMonthLink' is generated wrong, so that clicking it results in a 404 error.
The problem is, that the link lacks the 'view/' in the URL (e.g. mydomain.com/calendar/view/201006)

To make the widget work correctly under SS 2.4 just use this simple fix:
Replace line 249 in event_calendar/code/CalendarUI.class.php with this code

'CurrentMonthLink'  => $this->calendar->Link('view')."/".$this->start_date->format('Ym'),