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',
|
'io' => 'required|numeric|min:10|max:1000',
|
||||||
'cpu' => 'required|numeric|min:0',
|
'cpu' => 'required|numeric|min:0',
|
||||||
'disk' => 'required|numeric|min:0',
|
'disk' => 'required|numeric|min:0',
|
||||||
'service' => 'bail|required|numeric|min:1|exists:services,id',
|
'service' => 'required|numeric|min:1|exists:services,id',
|
||||||
'option' => 'bail|required|numeric|min:1|exists:service_options,id',
|
'option' => 'required|numeric|min:1|exists:service_options,id',
|
||||||
'pack' => 'bail|required|numeric|min:0',
|
'pack' => 'required|numeric|min:0',
|
||||||
'startup' => 'string',
|
'startup' => 'string',
|
||||||
'custom_image_name' => 'required_if:use_custom_image,on',
|
'custom_image_name' => 'required_if:use_custom_image,on',
|
||||||
'auto_deploy' => 'sometimes|boolean',
|
'auto_deploy' => 'sometimes|boolean',
|
||||||
|
@ -158,7 +158,7 @@ class ServerRepository
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate the Pack
|
// Validate the Pack
|
||||||
if ($data['pack'] === 0) {
|
if ($data['pack'] == 0) {
|
||||||
$data['pack'] = null;
|
$data['pack'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue