Skip to content

Commit 807521b

Browse files
committed
Fix schedules with no names being uneditable
1 parent c6a91e2 commit 807521b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
77
### Fixed
88
* Fixes an exception thrown when trying to access the `/nests/:id/eggs/:id` API endpoint.
99
* Fixes search on server listing page.
10+
* Schedules with no names are now clickable to allow editing.
1011

1112
### Added
1213
* Adds ability to include egg variables on an API request.

app/Http/Requests/Server/ScheduleCreationFormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function permission(): string
3333
public function rules()
3434
{
3535
return [
36-
'name' => 'string|max:255',
36+
'name' => 'nullable|string|max:255',
3737
'cron_day_of_week' => 'required|string',
3838
'cron_day_of_month' => 'required|string',
3939
'cron_hour' => 'required|string',

resources/themes/pterodactyl/server/schedules/index.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
<tr @if(! $schedule->is_active)class="muted muted-hover"@endif>
4444
<td class="middle">
4545
@can('edit-schedule', $server)
46-
<a href="{{ route('server.schedules.view', ['server' => $server->uuidShort, '$schedule' => $schedule->hashid]) }}">{{ $schedule->name }}</a>
46+
<a href="{{ route('server.schedules.view', ['server' => $server->uuidShort, '$schedule' => $schedule->hashid]) }}">
47+
{{ $schedule->name ?? trans('server.schedule.unnamed') }}
48+
</a>
4749
@else
4850
{{ $schedule->name ?? trans('server.schedule.unnamed') }}
4951
@endcan

0 commit comments

Comments
 (0)