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.

All other Modules /

Discuss all other Modules here.

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

Bug in event calendar module


Reply


476 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

5 January 2011 at 3:33am

If you extend CalendarEvent and add your own $has_many things break because CalendarEvent does

$has_manys = eval("return $class::\$has_many;");

which doesn't take the class hierarchy into account. Using

$has_manys = Object::combined_static($class, "has_many");

instead fixes this.