From 8004b1907299bb36cf2d2160a1f5b22c733c9cfa Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Tue, 20 Aug 2024 18:14:43 +0100 Subject: [PATCH] [5.x] Stop hiding `hidden` field in namespaced blueprints (#10617) --- resources/js/components/blueprints/Builder.vue | 3 +-- resources/views/blueprints/edit.blade.php | 1 - src/Http/Controllers/CP/Fields/BlueprintController.php | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/js/components/blueprints/Builder.vue b/resources/js/components/blueprints/Builder.vue index 9a17fb73c3..fb556c0b1f 100644 --- a/resources/js/components/blueprints/Builder.vue +++ b/resources/js/components/blueprints/Builder.vue @@ -24,7 +24,7 @@ -
+

{{ __('messages.blueprints_hidden_instructions') }}

@@ -68,7 +68,6 @@ export default { showTitle: Boolean, useTabs: { type: Boolean, default: true }, isFormBlueprint: { type: Boolean, default: false }, - showHidden: { type: Boolean, default: true }, }, data() { diff --git a/resources/views/blueprints/edit.blade.php b/resources/views/blueprints/edit.blade.php index 2279d5ae0e..a9fe90b76c 100644 --- a/resources/views/blueprints/edit.blade.php +++ b/resources/views/blueprints/edit.blade.php @@ -14,7 +14,6 @@ show-title action="{{ cp_route('blueprints.update', [$blueprint->namespace(), $blueprint->handle()]) }}" :initial-blueprint="{{ json_encode($blueprintVueObject) }}" - :show-hidden="false" > @include('statamic::partials.docs-callout', [ diff --git a/src/Http/Controllers/CP/Fields/BlueprintController.php b/src/Http/Controllers/CP/Fields/BlueprintController.php index bc031724b3..60b41221d1 100644 --- a/src/Http/Controllers/CP/Fields/BlueprintController.php +++ b/src/Http/Controllers/CP/Fields/BlueprintController.php @@ -66,8 +66,6 @@ public function update(Request $request, $namespace, $handle) throw new NotFoundHttpException; } - $request->merge(['hidden' => false]); // we dont support hidden here - $request->validate([ 'title' => 'required', 'tabs' => 'array',