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

Aberta
#14,945 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@joshuablum já está trabalhando nisso.

Desde 21/7/2026.

  • #15046 de @joshuablum — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
25/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Estagnada
Stack de tecnologia
php, yaml
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
PHP
Estrelas
4.9k
Forks
647
Merge médio
1d 45min
PRs com merge (30d)
221

Preparar o ambiente

Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de statamic/cms

Todas as issues de statamic/cms

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.