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 for drafts not autosaving with matrix custom propagation #12182

Closed

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Oct 25, 2022

Description

If matrix is set to propagation method: custom with propagation key being as per the last paragraph in the docs (https://craftcms.com/docs/4.x/fields.html#translation-methods), if you set primaryOwnerId and owner to owner element (e.g. entry) when creating a draft, the draft won't autosave. It causes an infinite loop because of a special check for supported sites (src/services/Matrix.php > getSupportedSiteIds() > line 1139)
Screenshot 2022-10-25 at 13 43 44

Not setting the primaryOwnerId and owner of the matrix block this way, means that the draft version owner is set to the new (draft) element and propagation method checks are carried out correctly.

Related issues

#12176

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

1 participant