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

obscure bug - hasmanyfilemanager / file decorator / getMyCMSFields


Go to End


1780 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?