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

ensure matrix blocks added on Matrix->inputHtml() are registered as delta changes #12983

Merged

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Mar 27, 2023

Description

If you have a matrix field with Min Blocks set to at least one, we programmatically add them when rendering the field’s html. However, when the Matrix field is being rendered, ElementEditor is not yet initialised, so when we get our initialSerializedValue() for the editor, the matrix block is already there and then is reported as not changed since the init and therefore not passed to PHP for saving.

FYI - not related to the conditionals as suggested by the issue report.

Related issues

#12973

@i-just i-just requested a review from a team as a code owner March 27, 2023 11:40
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.

None yet

2 participants