You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a multisite setup, the "Entries" field does not respect the Select Across Sites setting. When Select Across Sites is disabled, related entries from other sites are still displayed incorrectly. Specifically, authors are shown with articles from other sites, even when those articles are not present on the current site. This causes the articles:exists="true" filter to return inaccurate results.
Create an Authors collection (With Propagate true) and an Articles collection in a multisite setup.
Add an "Entries" field to the Authors collection, linking it to the Articles collection. Ensure the "Select Across Sites" setting is disabled.
Add an article to one site and relate it to an author. Ensure the same article does not exist on another site.
View the authors entry on a site where the article should not be present. Result: The article is visible on the authors page, even if it shouldn't
Expected Behavior
Authors without articles on the current site should not be displayed when articles:exists="true" is used, especially when "Select Across Sites" is disabled.
Actual Behavior
Authors with articles on other sites are still displayed, ignoring the Select Across Sites restriction and the current site context.
The text was updated successfully, but these errors were encountered:
MitschF
changed the title
Multisite (Collection Fieldtype): The deactivated field “Select Across Sites” is not always respected.
Incorrect Filtering Behavior in Multisite Setup for Related Entries with "Select Across Sites" Disabled
Jan 2, 2025
Bug Description
In a multisite setup, the "Entries" field does not respect the
Select Across Sites
setting. WhenSelect Across Sites
is disabled, related entries from other sites are still displayed incorrectly. Specifically, authors are shown with articles from other sites, even when those articles are not present on the current site. This causes thearticles:exists="true"
filter to return inaccurate results.Screenshot 1:
Screenshot 2:
Steps to Reproduce
Result: The article is visible on the authors page, even if it shouldn't
Expected Behavior
Authors without articles on the current site should not be displayed when
articles:exists="true"
is used, especially when "Select Across Sites" is disabled.Actual Behavior
Authors with articles on other sites are still displayed, ignoring the
Select Across Sites
restriction and the current site context.Logs
No relevant logs available.
Environment
Installation
Fresh
statamic/statamic
site via CLI.Additional Details
No additional context provided.
The text was updated successfully, but these errors were encountered: