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

Disabled Matrix blocks aren’t shown, then deleted #288

Closed
brandonkelly opened this issue Aug 6, 2019 · 0 comments · Fixed by #289
Closed

Disabled Matrix blocks aren’t shown, then deleted #288

brandonkelly opened this issue Aug 6, 2019 · 0 comments · Fixed by #289

Comments

@brandonkelly
Copy link
Contributor

Description

Super Table fields aren’t loading disabled Matrix blocks. Then when the entry is re-saved, they end up getting deleted.

Steps to reproduce

  1. Create a Super Table field with a Matrix field inside it
  2. Create an entry with the Super Table field
  3. Add at least one Super Table block with a disabled Matrix block inside it
  4. Save the entry. You will notice that the disabled block isn’t anywhere to be seen, however it’s still in the database at this point.
  5. Save the entry again. Now the disabled Matrix block will get soft-deleted, because it’s missing from the POST data, so Matrix assumes it was intentionally deleted.

Additional info

  • Plugin version: 2.2.1
  • Craft version: 3.*
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 a pull request may close this issue.

1 participant