-
-
Notifications
You must be signed in to change notification settings - Fork 616
Open
Labels
Description
Bug description
I haven't been able to pinpoint the cause yet, but there seems to be a weird issue where the listing columns preference doesn't save correctly when you have it set as a global preference in resources/preferences.yaml.
Related: duncanmcclean/statamic-cargo#148
CleanShot.2026-03-20.at.19.11.06.mp4
How to reproduce
- Create an Orders collection
- Paste this into the blueprint YAML file:
title: Order
tabs:
main:
display: Main
sections:
-
fields:
-
handle: title
field:
type: text
required: true
validate:
- required
-
handle: date
field:
type: date
display: Date
listable: true
-
handle: customer
field:
type: users
display: Customer
listable: true
-
handle: grand_total
field:
type: money
display: 'Grand Total'
listable: true
-
handle: order_status
field:
type: text
display: 'Order Status'
listable: true
sidebar:
display: Sidebar
sections:
-
fields:
-
handle: slug
field:
type: slug
localizable: true
validate: 'max:200'- Create an entry and fill the values
- Create
resources/preferences.yamlfile:
collections:
orders:
columns:
- date
- title
- customer
- grand_total
- order_status- Visit the orders listing page
- Click to "Customize columns" and remove "Grand Total" and "Order Status" and click Save.
- See the columns change
- Go to another page
- Go back to the orders listing page
- See the columns are back again
Logs
Environment
Environment
Application Name: Cargo Sandbox
Laravel Version: 12.49.0
PHP Version: 8.4.19
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: cargo-sandbox.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: redis
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 1
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.0.0 PRO
Statamic Addons
duncanmcclean/statamic-cargo: 1.x-dev
Cargo
Carts: file
Orders: file
Payment Gateways: Dummy, StripeInstallation
Fresh statamic/statamic site via CLI
Additional details
No response
Reactions are currently unavailable