[6.x]: Custom entry source with a single-section condition shows another source's entries

オープン
#20,388 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@brandonkelly がすでに取り組んでいます。

2026年11月5日 から。

評価

この issue はまだ評価されていません。

説明

bug
What happened?
Steps to reproduce
  1. Have two Single sections, e.g. Home and Site settings.
  2. Go to Entries → Customize sources and add a custom source with the condition Section is any of Site settings. Save.
  3. Click the new source in the sidebar.
Expected behavior

Only the Site settings entry is listed.

Actual behavior

Both singles are listed, the same as the Singles source. The sidebar link goes to /admin/content/{page}/siteSettings instead of ?source=custom:….

Notes: If the Singles source is disabled, the custom source shows the entries of the page's first remaining source instead. Opening ?source=custom:<uid> directly shows the right entries.

Craft CMS version

CMS 6.x-dev (6ae3ad770e)

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
主要言語
PHP
スター
3.6k
フォーク
712
平均マージ
13時間 13分
マージ済み PR(30日)
372

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

craftcms/cms のほかの issue

craftcms/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。