Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow extensions to modify form scaffolder in DataObject #9100

Conversation

ScopeyNZ
Copy link
Contributor

I've added this because it's actually coming up where we want to add to FormScaffolder::$restrictFields before the form is scaffolded for performance reasons. Scaffolding a form field for a relation, just to remove it again in getCMSFields is just a performance loss. Alternatively I could add some API to allow updating this from within your DataObject definition but that might have to be a 4.5 feature.

@robbieaverill robbieaverill merged commit fd88003 into silverstripe:4.4 Jul 2, 2019
@robbieaverill robbieaverill deleted the pulls/4.4/dataobject-scaffolding-freedom branch July 2, 2019 06:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants