Skip to content

Commit

Permalink
🍺
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Jan 31, 2024
1 parent 078965b commit 74ac154
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
15 changes: 7 additions & 8 deletions src/Http/Controllers/CP/Collections/CollectionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')]],
],
],
],
],
])
Expand Down
1 change: 0 additions & 1 deletion src/Http/Responses/DataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74ac154

Please sign in to comment.