From 4b3ebf7862c95bbc1c99795bcd10e8fd7cf1304c Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 14 Jan 2026 11:26:53 +0000 Subject: [PATCH 1/3] Fix localizable toggle on fields --- resources/js/pages/blueprints/Edit.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/js/pages/blueprints/Edit.vue b/resources/js/pages/blueprints/Edit.vue index 3a1cc7f69c8..8890789a1be 100644 --- a/resources/js/pages/blueprints/Edit.vue +++ b/resources/js/pages/blueprints/Edit.vue @@ -7,7 +7,10 @@ defineProps({ action: String, showTitle: Boolean, useTabs: { type: Boolean, default: true }, - canDefineLocalizable: Boolean, + canDefineLocalizable: { + type: Boolean, + default: () => Statamic.$config.get('sites').length > 1, + }, resetRoute: String, isResettable: Boolean, isFormBlueprint: Boolean, From 13ae4443ef1f2a76e30810b77f6c324451c6cbdc Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 14 Jan 2026 11:31:09 +0000 Subject: [PATCH 2/3] let it be undefined --- resources/js/pages/blueprints/Edit.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/js/pages/blueprints/Edit.vue b/resources/js/pages/blueprints/Edit.vue index 8890789a1be..6b1013a37b1 100644 --- a/resources/js/pages/blueprints/Edit.vue +++ b/resources/js/pages/blueprints/Edit.vue @@ -7,10 +7,7 @@ defineProps({ action: String, showTitle: Boolean, useTabs: { type: Boolean, default: true }, - canDefineLocalizable: { - type: Boolean, - default: () => Statamic.$config.get('sites').length > 1, - }, + canDefineLocalizable: { type: Boolean, default: undefined }, resetRoute: String, isResettable: Boolean, isFormBlueprint: Boolean, From 83ec22615e8a989f8f6c20c032efd044a00fb837 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Wed, 14 Jan 2026 11:37:05 +0000 Subject: [PATCH 3/3] you shouldn't be able to localize fields on form and group blueprints --- src/Http/Controllers/CP/Forms/FormBlueprintController.php | 1 + src/Http/Controllers/CP/Users/UserGroupBlueprintController.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Http/Controllers/CP/Forms/FormBlueprintController.php b/src/Http/Controllers/CP/Forms/FormBlueprintController.php index 90b386b166a..013e974dc0d 100644 --- a/src/Http/Controllers/CP/Forms/FormBlueprintController.php +++ b/src/Http/Controllers/CP/Forms/FormBlueprintController.php @@ -45,6 +45,7 @@ public function edit($form) 'blueprint' => $this->toVueObject($blueprint), 'action' => cp_route('blueprints.forms.update', $form->handle()), 'isFormBlueprint' => true, + 'canDefineLocalizable' => false, 'useTabs' => false, ]); } diff --git a/src/Http/Controllers/CP/Users/UserGroupBlueprintController.php b/src/Http/Controllers/CP/Users/UserGroupBlueprintController.php index 8820427af03..babe760079f 100644 --- a/src/Http/Controllers/CP/Users/UserGroupBlueprintController.php +++ b/src/Http/Controllers/CP/Users/UserGroupBlueprintController.php @@ -42,6 +42,7 @@ public function edit() return $this->renderEditPage([ 'blueprint' => $this->toVueObject($blueprint), 'action' => cp_route('blueprints.user-groups.update'), + 'canDefineLocalizable' => false, ]); }