Incorrect Filtering Behavior in Multisite Setup for Related Entries with "Select Across Sites" Disabled
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
調査の方向性
Reproduce the issue using the Authors and Articles collections in a multisite setup, with propagation enabled and Select Across Sites disabled on the Entries field. Start by tracing how the collection query applies the articles:exists="true" filter against the current site and how the Entries field setting affects related entries. Done means authors are excluded when their related articles exist only on another site; no relevant logs or test files are named in the issue.
索引モデルが issue の本文から書いたものです。
説明
Bug Description
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.
{{ collection:authors paginate="60" articles:exists="true" as="authors" }}
{{ partial:authors/list }}
{{ /collection:authors }}
Screenshot 1:
Screenshot 2:
Steps to Reproduce
- 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.
Logs
No relevant logs available.
Environment
Environment
Application Name: OJC Web
Laravel Version: 11.35.1
PHP Version: 8.3.14
Composer Version: 2.8.3
Environment: local
Debug Mode: ENABLED
URL: localhost
Maintenance Mode: OFF
Timezone: UTC
Locale: de
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: sendmail
Queue: sync
Session: file
Statamic
Addons: 11
Sites: 4 (OJC (ojc.de), DIJG (dijg.de), Salzkorn (ojc-salzkorn.de), hOffen (hoffen-magazin.de))
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.42.1 PRO
Statamic Addons
aryehraber/statamic-logbook: 3.3.0
daun/statamic-placeholders: 3.0.1
eminos/statamic-iconify: 1.3.0
michaelmannucci/shades: 1.0.0
mitydigital/feedamic: 2.5.0
mitydigital/statamic-sticky-notes: 1.0.2
pecotamic/sitemap: 1.4.7
stillat/relationships: 2.2.1
swiftmade/statamic-clear-assets: 3.1.0
takepart-media/statamic-oreos: 1.3.0
webographen/statamic-admin-l
Installation
Fresh statamic/statamic site via CLI.
Additional Details
No additional context provided.
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 647
- 平均マージ
- 1日 45分
- マージ済み PR(30日)
- 221
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statamic/cms のほかの issue
-
forms ui
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
antlers
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
Nav: link to the site root with an anchor (/#section) gets is_parent on every page対応中かも @duncanmcclean が今日担当しました。 オープンnavigations
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Multiple Choice and Checkboxes no longer offer "Inline", but the default views still use it対応中かも @duncanmcclean が今日担当しました。 オープンforms
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
sync-en
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
vimeo/psalm#15150 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
taskforcesh/bullmq#5238 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it対応中かも @bfs2021 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Automattic/jetpack#55517 ·
メンテナーはふだん 1 日以内に返信