summaryrefslogtreecommitdiff
path: root/app/Validator
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-11-17 14:46:23 -0800
committerFrederic Guillot <fred@kanboard.net>2017-11-17 14:46:23 -0800
commit2a313eb971ab36e166308f7882897ef204234d0a (patch)
tree6bb7a72ee7bce1c0baef908af49ff1b817c939f2 /app/Validator
parent3b786e05e0e51ca6f85ef9a3ca0d649f3e34c534 (diff)
Add the possibility to send tasks and comments to multiple recipients
Diffstat (limited to 'app/Validator')
-rw-r--r--app/Validator/CommentValidator.php3
-rw-r--r--app/Validator/TaskValidator.php3
2 files changed, 2 insertions, 4 deletions
diff --git a/app/Validator/CommentValidator.php b/app/Validator/CommentValidator.php
index 29994afc..9c883c00 100644
--- a/app/Validator/CommentValidator.php
+++ b/app/Validator/CommentValidator.php
@@ -26,8 +26,7 @@ class CommentValidator extends BaseValidator
new Validators\Required('task_id', t('This value is required')),
new Validators\Required('user_id', t('This value is required')),
new Validators\Required('subject', t('This field is required')),
- new Validators\Required('email', t('This field is required')),
- new Validators\Email('email', t('Email address invalid')),
+ new Validators\Required('emails', t('This field is required')),
);
$v = new Validator($values, array_merge($rules, $this->commonValidationRules()));
diff --git a/app/Validator/TaskValidator.php b/app/Validator/TaskValidator.php
index 3fc70317..2bf148f4 100644
--- a/app/Validator/TaskValidator.php
+++ b/app/Validator/TaskValidator.php
@@ -217,8 +217,7 @@ class TaskValidator extends BaseValidator
{
$rules = array(
new Validators\Required('subject', t('This field is required')),
- new Validators\Required('email', t('This field is required')),
- new Validators\Email('email', t('Email address invalid')),
+ new Validators\Required('emails', t('This field is required')),
);
$v = new Validator($values, $rules);