mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-23 01:22:30 +01:00
Fix data pack assignment
This commit is contained in:
parent
84f87680d8
commit
fd360f6475
@ -79,9 +79,9 @@ class ServerRepository
|
||||
'io' => 'required|numeric|min:10|max:1000',
|
||||
'cpu' => 'required|numeric|min:0',
|
||||
'disk' => 'required|numeric|min:0',
|
||||
'service' => 'bail|required|numeric|min:1|exists:services,id',
|
||||
'option' => 'bail|required|numeric|min:1|exists:service_options,id',
|
||||
'pack' => 'bail|required|numeric|min:0',
|
||||
'service' => 'required|numeric|min:1|exists:services,id',
|
||||
'option' => 'required|numeric|min:1|exists:service_options,id',
|
||||
'pack' => 'required|numeric|min:0',
|
||||
'startup' => 'string',
|
||||
'custom_image_name' => 'required_if:use_custom_image,on',
|
||||
'auto_deploy' => 'sometimes|boolean',
|
||||
@ -158,7 +158,7 @@ class ServerRepository
|
||||
}
|
||||
|
||||
// Validate the Pack
|
||||
if ($data['pack'] === 0) {
|
||||
if ($data['pack'] == 0) {
|
||||
$data['pack'] = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user