Add CSV import for tasks

This commit is contained in:
Frederic Guillot
2015-10-12 17:49:30 -04:00
parent e515f37435
commit 7d458cd500
11 changed files with 286 additions and 3 deletions

View File

@@ -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')),