Added MaxLenght to 50 for use with API/Comment new parameter

This commit is contained in:
Eskiso 2015-12-17 09:36:38 +00:00
parent 9758a61e0a
commit 59367d5450
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ class Comment extends Base
new Validators\Integer('id', t('This value must be an integer')),
new Validators\Integer('task_id', t('This value must be an integer')),
new Validators\Integer('user_id', t('This value must be an integer')),
new Validators\MaxLength('reference', t('The maximum length is %d characters', 50), 50),
new Validators\Required('comment', t('Comment is required'))
);
}