Skip to content

[6.x] Fix site handle warning not showing when saving sites - #15722

Open
lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15720-site-handle-warning
Open

lazerg wants to merge 1 commit into
statamic:6.xfrom
lazerg:fix/issue-15720-site-handle-warning

Conversation

@lazerg

@lazerg lazerg commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

This pull request fixes an issue where the "Changing a site handle may break existing site content" warning never showed up when saving the sites config.

The form values were the same object as the initialValues prop, so editing a handle changed the initial handles too and the check always came out false.

This PR fixes it by cloning initialValues before handing it to the publish container.

Fixes #15720

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning dialog not displayed after updating site handle

1 participant