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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


1155 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'),