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:
parent
8f72571895
commit
0a39a9b6bf
@ -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>`
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user