diff --git a/CHANGELOG.md b/CHANGELOG.md index 97909a864..9b0b31e4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines. * `[rc.1]` — Fixes exception thown when attempting to adjust mail settings as well as a validation error thrown afterwards. * `[rc.1]` — Fixes bug preventing modification of the default value for an Egg variable. * `[rc.1]` — Fixed a bug that would occur when attempting to reset the daemon secret for a node. +* `[rc.1]` — Fix exception thrown when attempting to modify an existing database host. ## v0.7.0-rc.1 (Derelict Dermodactylus) ### Fixed diff --git a/app/Http/Controllers/Admin/DatabaseController.php b/app/Http/Controllers/Admin/DatabaseController.php index dbf2766a1..38bc5b701 100644 --- a/app/Http/Controllers/Admin/DatabaseController.php +++ b/app/Http/Controllers/Admin/DatabaseController.php @@ -100,7 +100,7 @@ class DatabaseController extends Controller * * @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException */ - public function view($host): View + public function view(int $host): View { return view('admin.databases.view', [ 'locations' => $this->locationRepository->getAllWithNodes(), diff --git a/app/Http/Requests/Admin/DatabaseHostFormRequest.php b/app/Http/Requests/Admin/DatabaseHostFormRequest.php index 76a2f1e55..ae46f7c76 100644 --- a/app/Http/Requests/Admin/DatabaseHostFormRequest.php +++ b/app/Http/Requests/Admin/DatabaseHostFormRequest.php @@ -23,7 +23,7 @@ class DatabaseHostFormRequest extends AdminFormRequest } if ($this->method() !== 'POST') { - return DatabaseHost::getUpdateRulesForId($this->route()->parameter('host')->id); + return DatabaseHost::getUpdateRulesForId($this->route()->parameter('host')); } return DatabaseHost::getCreateRules();