craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 627 forks source link

Matrix block not being saved #4352

Closed rogertinch closed 5 years ago

rogertinch commented 5 years ago

Description

I have a channel section with two different entry types. One of the entry types has a matrix field that requires a minimum of 1 matrix block in order to be saved. Clicking on "Update entry" after filling out the entry and the entry is saved, but the matrix block that has been added disappears.

Before "Update entry":

image

After "Update entry":

image

Steps to reproduce

  1. Create new entry
  2. Select the "Dynamic" entry type
  3. Add matrix block
  4. Click on "Update entry"

Additional info

rogertinch commented 5 years ago

@brandonkelly I believe it's related to the use of the Single Category field in a Matrix block AND that it's in a section with more than one entry type.

I'm using a Single Category field in a Matrix block in another section with only one entry type and am not having this issue.