summaryrefslogtreecommitdiff
path: root/app/Model/Project.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-08-18 21:39:43 -0400
committerFrederic Guillot <fred@kanboard.net>2015-08-18 21:39:43 -0400
commit6b4786624be70c4c024b829407a7496eec361cbb (patch)
tree51999c360f0f0c965b317ba31419118ef6ace8a3 /app/Model/Project.php
parentb04cbc419b60df02ca59a9bbf87cd840614b09a4 (diff)
Add start and end date for projects
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r--app/Model/Project.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php
index fedc41ac..161a0cae 100644
--- a/app/Model/Project.php
+++ b/app/Model/Project.php
@@ -509,6 +509,8 @@ class Project extends Base
new Validators\Required('name', t('The project name is required')),
new Validators\MaxLength('name', t('The maximum length is %d characters', 50), 50),
new Validators\MaxLength('identifier', t('The maximum length is %d characters', 50), 50),
+ new Validators\MaxLength('start_date', t('The maximum length is %d characters', 10), 10),
+ new Validators\MaxLength('end_date', t('The maximum length is %d characters', 10), 10),
new Validators\AlphaNumeric('identifier', t('This value must be alphanumeric')) ,
new Validators\Unique('name', t('This project must be unique'), $this->db->getConnection(), self::TABLE),
new Validators\Unique('identifier', t('The identifier must be unique'), $this->db->getConnection(), self::TABLE),