summaryrefslogtreecommitdiff
path: root/app/Model/TaskValidator.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-12 17:49:30 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-12 17:49:30 -0400
commit7d458cd5004d026dec0c41bbb1daacb259a52cfb (patch)
tree5afa8d858145a3507a72d0e323a552aa97ba671e /app/Model/TaskValidator.php
parente515f37435db6cf883215f13f02391d8b2107d47 (diff)
Add CSV import for tasks
Diffstat (limited to 'app/Model/TaskValidator.php')
-rw-r--r--app/Model/TaskValidator.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Model/TaskValidator.php b/app/Model/TaskValidator.php
index 95b8a26c..89c66f2f 100644
--- a/app/Model/TaskValidator.php
+++ b/app/Model/TaskValidator.php
@@ -38,6 +38,7 @@ class TaskValidator extends Base
new Validators\Integer('recurrence_trigger', t('This value must be an integer')),
new Validators\Integer('recurrence_status', t('This value must be an integer')),
new Validators\MaxLength('title', t('The maximum length is %d characters', 200), 200),
+ new Validators\MaxLength('reference', t('The maximum length is %d characters', 50), 50),
new Validators\Date('date_due', t('Invalid date'), $this->dateParser->getDateFormats()),
new Validators\Date('date_started', t('Invalid date'), $this->dateParser->getAllFormats()),
new Validators\Numeric('time_spent', t('This value must be numeric')),