Changes in preferences do not use the collection handle but its title

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

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

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

2026年7月21日 から。

  • #15046 @joshuablum による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
php, yaml
領域
backend

調査の方向性

Start with /resources/preferences.yaml and reproduce the issue using a collection whose title differs from its handle, then move its section in the CP Nav. Check whether the saved preference uses the title instead of the handle; done means the moved section continues working after the title changes while the handle stays the same.

索引モデルが issue の本文から書いたものです。

説明

preferences
Bug description

I have moved some elements in the Nav around and this resulted in following change in /resources/preferences.yaml:

nav:
  sections:
    footer:
      action: '@create'
      display: Footer
      items:
        'content::collections::social_media': '@move'
        'content::collections::sponsoren': '@move'
        'content::collections::co_sponsoren': '@move'

Now "sponsoren" is not the handle of the collection. The title is Sponsoren but the handle is sponsors (we're strictly separating between German for anything customer facing in the cp and English for anything code-related).

When I rename the Title of the collection, but leave the handle the same, the moved section stops working.

How to reproduce
  1. Create a collection with a title that is different from its handle
  2. Move the section around in the CP Nav
  3. Check preferences.yaml
Logs

Environment
Environment
Laravel Version: 12.62.0
PHP Version: 8.5.6
Composer Version: 2.10.0
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de

Statamic
Addons: 6
License Key: Set
Sites: 3 (🇩🇪 Deutsch, 🇫🇷 Français, 🇬🇧 English)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.23.0 PRO
Installation

Existing Laravel app

Additional details

No response

主要言語
PHP
スター
4.9k
フォーク
647
平均マージ
1日 45分
マージ済み PR(30日)
221

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

statamic/cms のほかの issue

statamic/cms の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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