craftcms / cms

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

[Bug] Error with matrix fields on multi-site when managing the blocks on a per-site basis. #1503

Closed connor-baer closed 7 years ago

connor-baer commented 7 years ago

Description

I believe I have found a bug with matrix fields in Globals when using multiple sites and managing the blocks on a per-site basis.

Steps to reproduce

Tested on a fresh Craft3 install.

  1. Create two or more sites in Craft3.
  2. Add a Global Set that contains a matrix field.
  3. Check "Manage blocks on a per-site basis" for the matrix field.
  4. Navigate to the Globals and simply click save. (If that works, try editing the matrix block or switch sites).
  5. Voilà:

    Internal Server Error Attempting to save an element in an unsupported site.

Additional info

connor-baer commented 7 years ago

I just discovered that this also happens with normal Entries, not just Global Sets. Same error message:

Internal Server Error Attempting to save an element in an unsupported site.

Am I doing something wrong/missing something? This is my setup:

brandonkelly commented 7 years ago

Looks like this was fixed by 40e8ff9f6a1ddc81fec5ed84595344fc26767e08

connor-baer commented 7 years ago

Just updated to beta 8 and tried again. I can confirm that it works now. Thanks! 🙌