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

FIX Avoid infinite recursive loop with attributes in schemadata #312

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Nov 15, 2024

@GuySartorelli GuySartorelli force-pushed the pulls/4/schemadata-attributes branch from 7c4f39c to c70bfbe Compare November 20, 2024 23:32
Comment on lines +416 to +417
$form = new Form();
$field->setForm($form);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without this we get the following error due to calling getSchemaState() which we didn't used to call:

LogicException: Field must be associated with a form to call Link(). Please use $field->setForm($form);

@emteknetnz emteknetnz merged commit 7f50ea1 into silverstripe:4 Nov 24, 2024
6 of 9 checks passed
@emteknetnz emteknetnz deleted the pulls/4/schemadata-attributes branch November 24, 2024 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants