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

Abierto
#14,945 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@joshuablum ya está trabajando en esto.

Desde el 21/7/2026.

  • #15046 de @joshuablum — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
php, yaml
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
PHP
Estrellas
4.9k
Forks
647
Merge medio
1 d 45 min
PR fusionados (30 d)
221

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de statamic/cms

Todos los issues de statamic/cms

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.