From 4e916cbf080caeb8a48d06addbf7852416b03d82 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 19 Mar 2017 12:39:22 -0400 Subject: [PATCH] Fix auto-deploy checkbox triggering error --- CHANGELOG.md | 1 + app/Repositories/ServerRepository.php | 2 +- resources/themes/pterodactyl/admin/servers/new.blade.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1acc6282..ada37ee0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent. * `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations. * `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables. +* `[pre.6]` — Fixes auto-deploy checkbox on server creation causing validation error. ## v0.6.0-pre.6 (Courageous Carniadactylus) ### Fixed diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index 223659fc..8eb87f5f 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -96,7 +96,7 @@ class ServerRepository 'pack_id' => 'sometimes|nullable|numeric|min:0', 'custom_container' => 'string', 'startup' => 'string', - 'auto_deploy' => 'sometimes|boolean', + 'auto_deploy' => 'sometimes|required|accepted', 'custom_id' => 'sometimes|required|numeric|unique:servers,id', ]); diff --git a/resources/themes/pterodactyl/admin/servers/new.blade.php b/resources/themes/pterodactyl/admin/servers/new.blade.php index 55c6c6ca..48383164 100644 --- a/resources/themes/pterodactyl/admin/servers/new.blade.php +++ b/resources/themes/pterodactyl/admin/servers/new.blade.php @@ -93,7 +93,7 @@