mirror of
https://github.com/flarum/core.git
synced 2025-08-26 01:34:16 +02:00
Fix validation of "hidden" checkbox not working
This commit is contained in:
@@ -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'],
|
||||||
];
|
];
|
||||||
|
Reference in New Issue
Block a user