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

Entries Field within a Global not saving #2451

Closed
himynameisphil opened this issue Feb 18, 2018 · 4 comments
Closed

Entries Field within a Global not saving #2451

himynameisphil opened this issue Feb 18, 2018 · 4 comments
Assignees
Labels

Comments

@himynameisphil
Copy link

himynameisphil commented Feb 18, 2018

Description

When adding an entries field to a Global, it doesn't seem to save properly.

Steps to reproduce

  1. Create two sites (Site A and Site B).
  2. Create a section that is only enabled for Site A.
  3. Create at least one entry in the section.
  4. Create an Entries field that relates entries from that section. (Don’t check the “Manage relations on a per-site basis” checkbox.)
  5. Create a Global Set, and assign the Entries field to it.
  6. Edit the Global Set for Site A, select an entry in the Entries field, and save it.

Additional info

  • Craft version: 3.0.0-RC10.1
  • PHP version: 7.1.8
@brandonkelly
Copy link
Member

I’m not able to reproduce. Can you please send an email to [email protected] with a database backup?

@brandonkelly
Copy link
Member

OK I was able to reproduce this. It only occurs on multi-site installs, for relations that are not available in all of the sites. I just updated the initial post with a complete list of steps to reproduce.

@ghost
Copy link

ghost commented Mar 5, 2019

We're still experiencing this issue. Did a clean install, setup 3 sites and multiple global sets each with a entry field in it (the same field). Created a section with entries enabled in only 2 of the sites and created/linked entries within the global sets. Then saved the global sets from the third site (which doesn't have access to the section) this cleared the related entries.

@brandonkelly
Copy link
Member

@sckwebworks Since you are relating to a section that’s not enabled for all sites, you should edit your Entries field, toggle the Advanced settings at the bottom, and check “Relate entries from a specific site?”, then choose a site that the section is enabled in.

(We’re planning on implementing #3584 in Craft 3.2, which will make it possible for relations to store the specific site that was selected at the time you created the relation.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants