From 59367d5450ce3607ee7a6c56849e7b5f67b7e42b Mon Sep 17 00:00:00 2001 From: Eskiso Date: Thu, 17 Dec 2015 09:36:38 +0000 Subject: Added MaxLenght to 50 for use with API/Comment new parameter --- app/Model/Comment.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Model/Comment.php') diff --git a/app/Model/Comment.php b/app/Model/Comment.php index c7125a25..f60a96e3 100644 --- a/app/Model/Comment.php +++ b/app/Model/Comment.php @@ -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')) ); } -- cgit v1.2.3