Skip to content

Commit

Permalink
[5.x] Stop hiding hidden field in namespaced blueprints (#10617)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell authored Aug 20, 2024
1 parent 587e93b commit 8004b19
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions resources/js/components/blueprints/Builder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</div>
</div>

<div class="form-group config-field" v-if="showHidden">
<div class="form-group config-field">
<div class="field-inner">
<label class="block">{{ __('Hidden') }}</label>
<p class="help-block">{{ __('messages.blueprints_hidden_instructions') }}</p>
Expand Down Expand Up @@ -68,7 +68,6 @@ export default {
showTitle: Boolean,
useTabs: { type: Boolean, default: true },
isFormBlueprint: { type: Boolean, default: false },
showHidden: { type: Boolean, default: true },
},
data() {
Expand Down
1 change: 0 additions & 1 deletion resources/views/blueprints/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
show-title
action="{{ cp_route('blueprints.update', [$blueprint->namespace(), $blueprint->handle()]) }}"
:initial-blueprint="{{ json_encode($blueprintVueObject) }}"
:show-hidden="false"
></blueprint-builder>

@include('statamic::partials.docs-callout', [
Expand Down
2 changes: 0 additions & 2 deletions src/Http/Controllers/CP/Fields/BlueprintController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 8004b19

Please sign in to comment.