Fix allocation alias setting
This commit is contained in:
parent
1740b8dfb5
commit
81869bd5f2
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue