summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorEskiso <eSkiSo@users.noreply.github.com>2015-12-17 09:36:38 +0000
committerEskiso <eSkiSo@users.noreply.github.com>2015-12-17 09:36:38 +0000
commit59367d5450ce3607ee7a6c56849e7b5f67b7e42b (patch)
tree12e54c06981ed98536890efbc6e67f90e42994ed /app
parent9758a61e0a96dadde91077e2a76f0a93a4767a13 (diff)
Added MaxLenght to 50 for use with API/Comment new parameter
Diffstat (limited to 'app')
-rw-r--r--app/Model/Comment.php1
1 files changed, 1 insertions, 0 deletions
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'))
);
}