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

Đang mở
#14,945 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@joshuablum đang làm issue này rồi.

Từ ngày 21/7/2026.

  • #15046 của @joshuablum — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
php, yaml
Lĩnh vực
backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
4.9k
Fork
647
Merge trung bình
1 ngày 45 phút
Pull request đã merge (30 ngày)
221

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của statamic/cms

Tất cả issue của statamic/cms

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.