Skip to content

Commit 0a39a9b

Browse files
committed
Don't require an environment variable to be present if none are required anyways, closes pterodactyl#1007
1 parent 8f72571 commit 0a39a9b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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 a bug when reinstalling a server that would not mark the server as installing, resulting in some UI issues.
99
* Handle 404 errors from missing models in the application API bindings correctly.
10+
* Fix validation error returned when no environment variables are passed, even if there are no variables required.
1011

1112
### Added
1213
* Adds back client API for sending commands or power toggles to a server though the Panel API: `/api/client/servers/<identifier>`

app/Http/Requests/Api/Application/Servers/StoreServerRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function rules(): array
3939
'pack' => $rules['pack_id'],
4040
'docker_image' => $rules['image'],
4141
'startup' => $rules['startup'],
42-
'environment' => 'required|array',
42+
'environment' => 'present|array',
4343
'skip_scripts' => 'sometimes|boolean',
4444

4545
// Resource limitations

0 commit comments

Comments
 (0)