Skip to content

Grid, Group, Replicator do not sync/unsync when localizable option is on #13822

@brandolin-infofactory

Description

@brandolin-infofactory

Bug description

When writing in any field inside of one of these structures the "sync" is not reactive and doesn't "break" the link icon.
You need to manually click it to "unsync" and then it works correctly.

If one changes the content of a structured-localizable field without clicking the "unsync" icon the content will not be saved and will remain as the origin.

Having forms with 50+ fields in different structures it's hard to keep an eye (or to instruct copywriters) to always remember to click the "link" icon to desync it from the origin.

It works correctly on any other standard (non-structured) field.

Image

How to reproduce

  1. Activate multisite and add a second site.
  2. Edit the "pages" collection to use both sites and activate "propagate" (optional).
  3. Edit a blueprint and add any of these structure fields: grid, group, replicator.
  4. Then add any number of standard (text, textarea, bard... ) in it.
  5. Before saving the blueprint turn the structured structured field "localizable".
  6. Create an entry in the collection.
  7. Switch language
  8. Try editing one of the standard fields inside the structured field.
  9. The "sync" / "unsync" icon will not "break" and the content will not be updated when saving

Logs

Environment

Environment
Application Name: Statamic
Laravel Version: 12.49.0
PHP Version: 8.4.17
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: cyberspace-place.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: log
Queue: sync
Session: file

Storage
public/storage: NOT LINKED

Statamic
Addons: 0
Sites: 2 (Italiano, English)
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.2.2 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions