From 051bf1c9dbb5733242c7657d6d507389206b33ee Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 Jan 2016 20:38:39 -0500 Subject: Add configurable task priority --- app/Validator/ProjectValidator.php | 3 +++ app/Validator/TaskValidator.php | 1 + 2 files changed, 4 insertions(+) (limited to 'app/Validator') diff --git a/app/Validator/ProjectValidator.php b/app/Validator/ProjectValidator.php index 53cb7a37..1c6c90f8 100644 --- a/app/Validator/ProjectValidator.php +++ b/app/Validator/ProjectValidator.php @@ -24,6 +24,9 @@ class ProjectValidator extends Base { return array( new Validators\Integer('id', t('This value must be an integer')), + new Validators\Integer('priority_default', t('This value must be an integer')), + new Validators\Integer('priority_start', t('This value must be an integer')), + new Validators\Integer('priority_end', t('This value must be an integer')), new Validators\Integer('is_active', t('This value must be an integer')), new Validators\Required('name', t('The project name is required')), new Validators\MaxLength('name', t('The maximum length is %d characters', 50), 50), diff --git a/app/Validator/TaskValidator.php b/app/Validator/TaskValidator.php index c18a9761..7b73aeba 100644 --- a/app/Validator/TaskValidator.php +++ b/app/Validator/TaskValidator.php @@ -37,6 +37,7 @@ class TaskValidator extends Base new Validators\Integer('recurrence_basedate', t('This value must be an integer')), 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\Integer('priority', 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()), -- cgit v1.2.3