cms icon indicating copy to clipboard operation
cms copied to clipboard

Orderable property won't save in collection

Open DennisMeene opened this issue 3 months ago • 3 comments

Bug description

When activating "orderable" in a collection and saving, the changed property won't be saved.

Image

How to reproduce

See bug description.

The bug occurs in versions newer than 5.67.0. On 5.67.0 it works as intended.

Logs


Environment

Environment
Application Name: XXX
Laravel Version: 12.37.0
PHP Version: 8.4.14
Composer Version: 2.8.12
Environment: local
Debug Mode: ENABLED
URL: cgate.test
Maintenance Mode: OFF
Timezone: UTC
Locale: de

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: 2
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.69.0 PRO

Statamic Addons
hph/base: dev-main
kabocom/soft-hyphens: 1.0.0

Installation

Starter Kit using via CLI

Additional details

No response

DennisMeene avatar Nov 12 '25 10:11 DennisMeene

As a workaround you can get it to save if you toggle on expect a root page, slugs or max depth.

I'm not sure why it's not saving the YAML if they are all null/false.

miicah avatar Nov 21 '25 11:11 miicah

I have this too in Statamic 5.70.0, but @miicah that workaround doesn't work for me.

None of the structure settings save in the yaml even if change settings that are added to the yaml manually.

lukeagsmith avatar Dec 09 '25 12:12 lukeagsmith

Same here.

Workaround

For me, saving the following the collection's .yaml has worked:

structure:
  root: false
  max_depth: 1

wesort avatar Dec 10 '25 13:12 wesort