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

obscure bug - hasmanyfilemanager / file decorator / getMyCMSFields


Reply


858 Views

Avatar
geyer

Community Member, 5 Posts

12 March 2009 at 9:32am

Edited: 12/03/2009 9:34am

Hi guys,

We recently ran into a small bug with the DataObjectDecorator while working with the hasmanyfilemanager. We were extending the core File object to contain a few extra fields.. but for some reason the function getMyCMSFields in the decorator was not getting called in the CMS..

We found that renaming our project folder from [whatever] back to "mysite" solved the problem.

i.e. from [silverstripe root]/[whatever] to [silverstripe root]/mysite

Any ideas as to what causes this problem?