From e38eedb2471492a59d530bdcc365dfb18d197734 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 13 Feb 2024 11:18:55 +0000 Subject: [PATCH] make this a bit clearer --- .../CP/Collections/CollectionsController.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Http/Controllers/CP/Collections/CollectionsController.php b/src/Http/Controllers/CP/Collections/CollectionsController.php index a62a58410c..19cafe49cf 100644 --- a/src/Http/Controllers/CP/Collections/CollectionsController.php +++ b/src/Http/Controllers/CP/Collections/CollectionsController.php @@ -288,14 +288,16 @@ 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', 'display' => __('URL')]], - ['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', 'display' => __('URL')]], + ['handle' => 'status', 'field' => ['type' => 'radio', 'inline' => 'true', 'required' => true, 'options' => [301 => __('301 (Permanent)'), 302 => __('302 (Temporary)')], 'width' => '100', 'display' => __('Redirect HTTP Status')]], + ], ], ], - ], ], ]) ->save();