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 an error with element migrations and no field layout #14088

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

engram-design
Copy link
Contributor

Because you can call updateElements with $fieldLayout being null, this fragment will throw an error.

In my case, I just want to ensure that the title is copied across for an element, and there's not always guaranteed a field layout (as the user controls that - whether to use a "Form Template" to allow field layouts). This is for Formie.

@brandonkelly brandonkelly merged commit ad7cb07 into craftcms:5.0 Jan 2, 2024
6 checks passed
@brandonkelly
Copy link
Member

Doh, thanks!

@brandonkelly
Copy link
Member

5.0.0-alpha.4 is tagged with this fix.

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