diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-06-20 10:48:47 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-06-20 10:48:47 -0400 |
commit | cb0916d10e4a42a62f0ac8c69ecb4b7a15f398b4 (patch) | |
tree | d5344b06ee0b87224ec157f44bf513ca7e353b5b /app/Model/Action.php | |
parent | 7056d14c95888eebe90d023524d4a63e562a9f64 (diff) |
Add automatic action to send a task by email
Diffstat (limited to 'app/Model/Action.php')
-rw-r--r-- | app/Model/Action.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Model/Action.php b/app/Model/Action.php index c3bfe017..7547e37e 100644 --- a/app/Model/Action.php +++ b/app/Model/Action.php @@ -58,6 +58,7 @@ class Action extends Base 'TaskAssignCategoryLabel' => t('Change the category based on an external label'), 'TaskUpdateStartDate' => t('Automatically update the start date'), 'TaskMoveColumnCategoryChange' => t('Move the task to another column when the category is changed'), + 'TaskEmail' => t('Send a task by email to someone'), ); asort($values); @@ -351,10 +352,13 @@ class Action extends Base $categoryTemplate = $this->category->getById($param['value']); $categoryFromNewProject = $this->db->table(Category::TABLE)->eq('project_id', $project_to)->eq('name', $categoryTemplate['name'])->findOne(); return $categoryFromNewProject['id']; + case 'src_column_id': + case 'dest_column_id': case 'column_id': $boardTemplate = $this->board->getColumn($param['value']); $boardFromNewProject = $this->db->table(Board::TABLE)->eq('project_id', $project_to)->eq('title', $boardTemplate['title'])->findOne(); return $boardFromNewProject['id']; + // TODO: Add user_id default: return $param['value']; } |