statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
3.95k stars 524 forks source link

Renaming a Replicator set does not rename the usages of it across the site content #9807

Closed aaronbushnell closed 6 months ago

aaronbushnell commented 6 months ago

Bug description

This might be intended behavior due to how Statamic stores content, but I've noticed that renaming a Replicator set doesn't seem to update the name within content entries that use it.

How to reproduce

Logs

No response

Environment

Environment
Application Name: Statamic Starter
Laravel Version: 10.48.4
PHP Version: 8.3.3
Composer Version: 2.7.1
Environment: production
Debug Mode: ENABLED
URL: statamic-starter.test
Maintenance Mode: OFF

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: NOT CACHED

Drivers
Broadcasting: log
Cache: statamic
Database: mysql
Logs: stack / single
Mail: smtp
Session: file

Statamic
Addons: 7
Antlers: runtime
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.55.0 PRO

Statamic Addons
bencarr/statamic-hyperlink: 2.0.1
rias/statamic-redirect: 3.6.2
statamic/seo-pro: 5.4.1
trendyminds/guide: dev-main
trendyminds/nerf: dev-main
trendyminds/statamic-palette: 1.0.4
trendyminds/tip: dev-main

Installation

Other (please explain)

Antlers Parser

Runtime (default)

Additional details

No response

duncanmcclean commented 6 months ago

This also happens when you rename a "normal" field. When you rename a field/set, you need to manually find & replace all the references to it in your content. We can probably improve it but it's not a quick fix.

There's an existing feature request which covers this for fields, which I'll close this in favour of (feel free to give it a 👍 ): statamic/ideas#143.

aaronbushnell commented 6 months ago

Thanks, @duncanmcclean! I figured this was noted somewhere so I'll keep an eye on that for future updates.