1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-22 09:02:28 +01:00

Don't require an environment variable to be present if none are required anyways, closes #1007

This commit is contained in:
Dane Everitt 2018-03-01 18:35:53 -06:00
parent 8f72571895
commit 0a39a9b6bf
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
### Fixed
* Fixes a bug when reinstalling a server that would not mark the server as installing, resulting in some UI issues.
* Handle 404 errors from missing models in the application API bindings correctly.
* Fix validation error returned when no environment variables are passed, even if there are no variables required.
### Added
* Adds back client API for sending commands or power toggles to a server though the Panel API: `/api/client/servers/<identifier>`

View File

@ -39,7 +39,7 @@ class StoreServerRequest extends ApplicationApiRequest
'pack' => $rules['pack_id'],
'docker_image' => $rules['image'],
'startup' => $rules['startup'],
'environment' => 'required|array',
'environment' => 'present|array',
'skip_scripts' => 'sometimes|boolean',
// Resource limitations