Skip to content

Commit 81869bd

Browse files
committed
Fix allocation alias setting
1 parent 1740b8d commit 81869bd

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
1212
* `[beta.1]` — Fixes bug preventing loading of allocations when trying to create a new server.
1313
* `[beta.1]` — Fixes bug causing inability to create new servers on the Panel.
1414
* `[beta.1]` — Fixes bug causing inability to delete an allocation due to misconfigured JS.
15+
* `[beta.1]` — Fixes bug causing inability to set the IP alias for an allocation to an empty value.
1516

1617
## v0.7.0-beta.1 (Derelict Dermodactylus)
1718
### Added

app/Http/Requests/Admin/Node/AllocationAliasFormRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AllocationAliasFormRequest extends AdminFormRequest
1919
public function rules()
2020
{
2121
return [
22-
'alias' => 'required|nullable|string',
22+
'alias' => 'present|nullable|string',
2323
'allocation_id' => 'required|numeric|exists:allocations,id',
2424
];
2525
}

app/Models/Allocation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Allocation extends Model implements CleansAttributes, ValidableContract
6060
'node_id' => 'exists:nodes,id',
6161
'ip' => 'ip',
6262
'port' => 'numeric|between:1024,65553',
63-
'alias' => 'string',
63+
'ip_alias' => 'nullable|string',
6464
'server_id' => 'nullable|exists:servers,id',
6565
];
6666

0 commit comments

Comments
 (0)