Fix auto-deploy checkbox triggering error

This commit is contained in:
Dane Everitt 2017-03-19 12:39:22 -04:00
parent da19749098
commit 4e916cbf08
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* `[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. * `[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.
* `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations. * `[pre.6]` — Fixes bug in allocation parsing for a node that prevented adding new allocations.
* `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables. * `[pre.6]` — Fixes typo in migrations that wouldn't save custom regex for non-required variables.
* `[pre.6]` — Fixes auto-deploy checkbox on server creation causing validation error.
## v0.6.0-pre.6 (Courageous Carniadactylus) ## v0.6.0-pre.6 (Courageous Carniadactylus)
### Fixed ### Fixed

View file

@ -96,7 +96,7 @@ class ServerRepository
'pack_id' => 'sometimes|nullable|numeric|min:0', 'pack_id' => 'sometimes|nullable|numeric|min:0',
'custom_container' => 'string', 'custom_container' => 'string',
'startup' => 'string', 'startup' => 'string',
'auto_deploy' => 'sometimes|boolean', 'auto_deploy' => 'sometimes|required|accepted',
'custom_id' => 'sometimes|required|numeric|unique:servers,id', 'custom_id' => 'sometimes|required|numeric|unique:servers,id',
]); ]);

View file

@ -93,7 +93,7 @@
</div> </div>
<div class="box-footer"> <div class="box-footer">
<p class="text-muted small no-margin"> <p class="text-muted small no-margin">
<input type="checkbox" name="auto_deploy" id="pAutoDeploy" @if(old('auto_deploy'))checked="checked"@endif/> <input type="checkbox" name="auto_deploy" value="yes" id="pAutoDeploy" @if(old('auto_deploy'))checked="checked"@endif/>
<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> <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>
</p> </p>
</div> </div>