Fix data pack assignment

This commit is contained in:
Dane Everitt 2016-12-14 17:17:16 -05:00
parent 84f87680d8
commit fd360f6475
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -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;
}