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

[4.5.6]: Wrong site loaded when 'Relate entries from a specific site?' is enabled #13750

Closed
tommysvr opened this issue Sep 27, 2023 · 3 comments

Comments

@tommysvr
Copy link

What happened?

Description

With 'Relate entries from a specific site?' enabled on an Entries field, the entries from the wrong site are displayed when the modal is first opened. Closing and re-opening the modal then loads the expected site.

Steps to reproduce

  1. Create an Entries field with 'Relate entries from a specific site?' enabled, with Site B as the site selected to relate from
  2. On any entry, click 'Add an entry'; entries from Site A will be displayed in the modal
  3. Close the modal, reclick 'Add an entry'
  4. Entries from Site B will be displayed

Expected behavior

Entries from the selected site to relate from are displayed each time

Actual behavior

The very first time the modal loads, the wrong entries are displayed. This happens each time the entry is saved.

screenshot_2023_09_27._10.53.mp4

Craft CMS version

4.5.6

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

I’m not able to reproduce this on my end. The modal is consistently showing entries in the chosen site. Are you seeing this on a fresh install?

@brandonkelly
Copy link
Member

Nevermind, worked it out with @i-just. We are seeing the opposite of what you described though: the modals are showing the correct site initially, but not on subsequent opens. That’s now fixed for the next release.

@brandonkelly
Copy link
Member

Craft 4.5.7 is out now with that fix.

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

No branches or pull requests

2 participants