From 8740be05b365e500c93e7aee7226927958261911 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Thu, 16 Feb 2017 14:07:10 -0500 Subject: [PATCH] Fix adding variables --- app/Repositories/ServiceRepository/Variable.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Repositories/ServiceRepository/Variable.php b/app/Repositories/ServiceRepository/Variable.php index b7c52299e..f9836ff0f 100644 --- a/app/Repositories/ServiceRepository/Variable.php +++ b/app/Repositories/ServiceRepository/Variable.php @@ -46,9 +46,9 @@ class Variable 'description' => 'required|string', 'env_variable' => 'required|regex:/^[\w]{1,255}$/', 'default_value' => 'string|max:255', - 'user_viewable' => 'sometimes|required|numeric|size:1', - 'user_editable' => 'sometimes|required|numeric|size:1', - 'required' => 'sometimes|required|numeric|size:1', + 'user_viewable' => 'sometimes|required|nullable|boolean', + 'user_editable' => 'sometimes|required|nullable|boolean', + 'required' => 'sometimes|required|nullable|boolean', 'regex' => 'required|string|min:1', ]); @@ -101,9 +101,9 @@ class Variable 'description' => 'sometimes|required|string', 'env_variable' => 'sometimes|required|regex:/^[\w]{1,255}$/', 'default_value' => 'sometimes|string|max:255', - 'user_viewable' => 'sometimes|required|numeric|boolean', - 'user_editable' => 'sometimes|required|numeric|boolean', - 'required' => 'sometimes|required|numeric|boolean', + 'user_viewable' => 'sometimes|required|nullable|boolean', + 'user_editable' => 'sometimes|required|nullable|boolean', + 'required' => 'sometimes|required|nullable|boolean', 'regex' => 'sometimes|required|string|min:1', ]);