Add the possibility to change the assignee directly from the board

This commit is contained in:
Frédéric Guillot
2014-02-23 21:20:25 -05:00
parent 50051e776f
commit 4b7a72e931
6 changed files with 101 additions and 10 deletions

View File

@@ -209,4 +209,21 @@ class Task extends Base
$v->getErrors()
);
}
public function validateAssigneeModification(array $values)
{
$v = new Validator($values, array(
new Validators\Required('id', t('The id is required')),
new Validators\Integer('id', t('This value must be an integer')),
new Validators\Required('project_id', t('The project is required')),
new Validators\Integer('project_id', t('This value must be an integer')),
new Validators\Required('owner_id', t('This value is required')),
new Validators\Integer('owner_id', t('This value must be an integer')),
));
return array(
$v->execute(),
$v->getErrors()
);
}
}