From 74ac15426cb2e80e1fe726a88b4bfab598722c48 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Wed, 31 Jan 2024 07:54:42 +0000 Subject: [PATCH] :beer: --- .../CP/Collections/CollectionsController.php | 15 +++++++-------- src/Http/Responses/DataResponse.php | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Http/Controllers/CP/Collections/CollectionsController.php b/src/Http/Controllers/CP/Collections/CollectionsController.php index e2040c7578..cbd0b9bfdc 100644 --- a/src/Http/Controllers/CP/Collections/CollectionsController.php +++ b/src/Http/Controllers/CP/Collections/CollectionsController.php @@ -288,14 +288,13 @@ protected function createLinkBlueprint($namespace) 'title' => __('Link'), 'fields' => [ ['handle' => 'title', 'field' => ['type' => 'text']], - ['handle' => 'redirect', 'field' => - [ - 'type' => 'group', 'required' => true, 'width' => '100', - 'fields' => [ - ['handle' => 'url', 'field' => ['type' => 'link', 'required' => true, 'width' => '100']], - ['handle' => 'status', 'field' => ['type' => 'radio', 'inline' => 'true', 'required' => true, 'options' => [301 => __('301 (Permanent)'), 302 => __('302 (Temporary)')], 'width' => '100', 'display' => __('Redirect HTTP Status')]], - ] - ] + ['handle' => 'redirect', 'field' => [ + 'type' => 'group', 'required' => true, 'width' => '100', + 'fields' => [ + ['handle' => 'url', 'field' => ['type' => 'link', 'required' => true, 'width' => '100']], + ['handle' => 'status', 'field' => ['type' => 'radio', 'inline' => 'true', 'required' => true, 'options' => [301 => __('301 (Permanent)'), 302 => __('302 (Temporary)')], 'width' => '100', 'display' => __('Redirect HTTP Status')]], + ], + ], ], ], ]) diff --git a/src/Http/Responses/DataResponse.php b/src/Http/Responses/DataResponse.php index 528e799fd5..2ef950ae69 100644 --- a/src/Http/Responses/DataResponse.php +++ b/src/Http/Responses/DataResponse.php @@ -9,7 +9,6 @@ use Statamic\Events\ResponseCreated; use Statamic\Exceptions\NotFoundHttpException; use Statamic\Facades\Site; -use Statamic\Fields\LabeledValue; use Statamic\View\View; class DataResponse implements Responsable