Merge pull request #272 from hammerdawn/ErrorImprovement

Location should be validated on creation of a server,
This commit is contained in:
Dane Everitt 2017-01-25 14:10:59 -05:00 committed by GitHub
commit b8271cf8f6
1 changed files with 1 additions and 0 deletions

View File

@ -92,6 +92,7 @@ class ServerRepository
'disk' => 'required|numeric|min:0',
'service' => 'required|numeric|min:1|exists:services,id',
'option' => 'required|numeric|min:1|exists:service_options,id',
'location' => 'required|numeric|min:1|exists:locations,id',
'pack' => 'sometimes|nullable|numeric|min:0',
'startup' => 'string',
'custom_image_name' => 'required_if:use_custom_image,on',