mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Check for valid category types in validation
This commit is contained in:
parent
14ddcc56a2
commit
213a234bef
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue