-
-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Slug localisation is always reset to true when updating blueprint #7082
Comments
By the time the code reaches the https://github.com/statamic/cms/blob/3.3/src/Fields/Blueprint.php#L410 With
With
So the field needs to be included even if the value is |
The bug is in this line which unsets the If you uncomment that then it works fine... is there a purpose for why that line was added initially that we need to work around? |
That'd be so that you don't get There's no harm in it being there, though, if removing the line of code is the solution. |
Maybe we can check if |
The problem for me is anytime the blueprint updates for any reason it overwrites |
I made a pull request to detect if it's multi-site and allow the variable to be false. This change won't affect blueprints without multisite. I also found the slug field defaults to |
Bug description
Everytime you save a Blueprint, it sets the slug
localizable
property to true, so even if you manually update the blueprint and setlocalizable: false
when the save the blueprint again it'll overwrite it.Here you can see the slug field was not localizable, and the Vue devtools reflect that.
Above you can see the PATCH request, and the localizable field is still false.
Now, when you view the blueprint or reload the page it says the localizable field is true.
How to reproduce
Change the blueprint field
localizable: false
and save the blueprint in the Control Panel.Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
Related to Make multisite great again.
The text was updated successfully, but these errors were encountered: