Fix allocation alias setting

This commit is contained in:
Dane Everitt 2017-11-10 21:47:43 -06:00
parent 1740b8dfb5
commit 81869bd5f2
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* `[beta.1]` — Fixes bug preventing loading of allocations when trying to create a new server.
* `[beta.1]` — Fixes bug causing inability to create new servers on the Panel.
* `[beta.1]` — Fixes bug causing inability to delete an allocation due to misconfigured JS.
* `[beta.1]` — Fixes bug causing inability to set the IP alias for an allocation to an empty value.
## v0.7.0-beta.1 (Derelict Dermodactylus)
### Added

View File

@ -19,7 +19,7 @@ class AllocationAliasFormRequest extends AdminFormRequest
public function rules()
{
return [
'alias' => 'required|nullable|string',
'alias' => 'present|nullable|string',
'allocation_id' => 'required|numeric|exists:allocations,id',
];
}

View File

@ -60,7 +60,7 @@ class Allocation extends Model implements CleansAttributes, ValidableContract
'node_id' => 'exists:nodes,id',
'ip' => 'ip',
'port' => 'numeric|between:1024,65553',
'alias' => 'string',
'ip_alias' => 'nullable|string',
'server_id' => 'nullable|exists:servers,id',
];