Skip to content

A free open source IT asset/license management system

Check for valid category types in validation

snipe213a234befc9
diff --git a/app/Http/Controllers/CategoriesController.php b/app/Http/Controllers/CategoriesController.php
index 04582258ec..d05d4e9478 100755
--- a/app/Http/Controllers/CategoriesController.php
+++ b/app/Http/Controllers/CategoriesController.php
@@ -200,7 +200,7 @@ class CategoriesController extends Controller
// Redirect to the user management page
return redirect()->route('categories.index')->with('error', $error);
}
-
+
public function getDataViewAssets(Request $request, $categoryID)
{
diff --git a/resources/lang/en/validation.php b/resources/lang/en/validation.php
index 03c7471cab..c39da95df0 100644
--- a/resources/lang/en/validation.php
+++ b/resources/lang/en/validation.php
@@ -25,6 +25,7 @@ return array(
"file" => "The :attribute must be between :min - :max kilobytes.",
"string" => "The :attribute must be between :min - :max characters.",
),
+ "boolean" => "The :attribute must be true or false.",
"confirmed" => "The :attribute confirmation does not match.",
"date" => "The :attribute is not a valid date.",
"date_format" => "The :attribute does not match the format :format.",