Fixes minimum length in add article backend
This commit is contained in:
parent
f0e1afc1ac
commit
39fd45dced
|
@ -37,7 +37,7 @@ class AddArticleController extends Controller {
|
|||
'permission' => 'staff_2',
|
||||
'requestData' => [
|
||||
'title' => [
|
||||
'validation' => DataValidator::length(3, 100),
|
||||
'validation' => DataValidator::length(1, 100),
|
||||
'error' => ERRORS::INVALID_NAME
|
||||
],
|
||||
'content' => [
|
||||
|
@ -71,4 +71,4 @@ class AddArticleController extends Controller {
|
|||
'articleId' => $article->store()
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue