mirror of
https://github.com/flarum/framework.git
synced 2025-02-01 08:34:15 +08:00
Fix validation of "hidden" checkbox not working
This commit is contained in:
parent
49504da31e
commit
99c62ccdb0
|
@ -21,7 +21,7 @@ class TagValidator extends AbstractValidator
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
'name' => ['required'],
|
'name' => ['required'],
|
||||||
'slug' => ['required', 'unique:tags'],
|
'slug' => ['required', 'unique:tags'],
|
||||||
'isHidden' => ['bool'],
|
'is_hidden' => ['bool'],
|
||||||
'description' => ['string', 'max:700'],
|
'description' => ['string', 'max:700'],
|
||||||
'color' => ['regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'],
|
'color' => ['regex:/^#([a-f0-9]{6}|[a-f0-9]{3})$/i'],
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user