Skip to content

Commit 4e916cb

Browse files
committed
Fix auto-deploy checkbox triggering error
1 parent da19749 commit 4e916cb

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
@@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
88
* `[pre.6]` — Addresses misconfigured console queue that was still sending data way to quickly thus causing the console to explode on some devices when large amounts of data were sent.
99
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
1010
* `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables.
11+
* `[pre.6]` — Fixes auto-deploy checkbox on server creation causing validation error.
1112

1213
## v0.6.0-pre.6 (Courageous Carniadactylus)
1314
### Fixed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function create(array $data)
9696
'pack_id' => 'sometimes|nullable|numeric|min:0',
9797
'custom_container' => 'string',
9898
'startup' => 'string',
99-
'auto_deploy' => 'sometimes|boolean',
99+
'auto_deploy' => 'sometimes|required|accepted',
100100
'custom_id' => 'sometimes|required|numeric|unique:servers,id',
101101
]);
102102

resources/themes/pterodactyl/admin/servers/new.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
</div>
9494
<div class="box-footer">
9595
<p class="text-muted small no-margin">
96-
<input type="checkbox" name="auto_deploy" id="pAutoDeploy" @if(old('auto_deploy'))checked="checked"@endif/>
96+
<input type="checkbox" name="auto_deploy" value="yes" id="pAutoDeploy" @if(old('auto_deploy'))checked="checked"@endif/>
9797
<label for="pAutoDeploy">Check this box if you want the panel to automatically select a node and allocation for this server in the given location.</label>
9898
</p>
9999
</div>

0 commit comments

Comments
 (0)