mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-24 04:03:34 -08:00
Derp. Really check for valid category_type in Category model now
This commit is contained in:
parent
213a234bef
commit
73eee1b7b1
|
@ -30,7 +30,9 @@ class Category extends SnipeModel
|
|||
public $rules = array(
|
||||
'user_id' => 'numeric|nullable',
|
||||
'name' => 'required|min:1|max:255|unique_undeleted',
|
||||
'category_type' => 'required',
|
||||
'require_acceptance' => 'required|boolean',
|
||||
'use_default_eula' => 'required|boolean',
|
||||
'category_type' => 'required|in:asset,accessory,consumable,component',
|
||||
);
|
||||
|
||||
/**
|
||||
|
@ -50,7 +52,7 @@ class Category extends SnipeModel
|
|||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = ['name','category_type', 'user_id'];
|
||||
protected $fillable = ['name','category_type', 'user_id', 'use_default_eula','checkin_email','require_acceptance'];
|
||||
|
||||
|
||||
public function has_models()
|
||||
|
|
Loading…
Reference in a new issue