mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 15:44:45 +02:00
Fix exception when modifying existing DB host, closes #910
This commit is contained in:
parent
de1d9502c1
commit
ff8b5fc5a3
@ -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 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]` — 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]` — 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)
|
## v0.7.0-rc.1 (Derelict Dermodactylus)
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -100,7 +100,7 @@ class DatabaseController extends Controller
|
|||||||
*
|
*
|
||||||
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
* @throws \Pterodactyl\Exceptions\Repository\RecordNotFoundException
|
||||||
*/
|
*/
|
||||||
public function view($host): View
|
public function view(int $host): View
|
||||||
{
|
{
|
||||||
return view('admin.databases.view', [
|
return view('admin.databases.view', [
|
||||||
'locations' => $this->locationRepository->getAllWithNodes(),
|
'locations' => $this->locationRepository->getAllWithNodes(),
|
||||||
|
@ -23,7 +23,7 @@ class DatabaseHostFormRequest extends AdminFormRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->method() !== 'POST') {
|
if ($this->method() !== 'POST') {
|
||||||
return DatabaseHost::getUpdateRulesForId($this->route()->parameter('host')->id);
|
return DatabaseHost::getUpdateRulesForId($this->route()->parameter('host'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return DatabaseHost::getCreateRules();
|
return DatabaseHost::getCreateRules();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user