diff options
| author | Frederic Guillot <fred@kanboard.net> | 2016-01-03 16:43:13 -0500 |
|---|---|---|
| committer | Frederic Guillot <fred@kanboard.net> | 2016-01-03 16:43:13 -0500 |
| commit | a296ba5b18487d312acca2513d461a210a460fae (patch) | |
| tree | e5e22ffa7796a9734ec284826dd313219644a539 /app/Action/TaskMoveColumnCategoryChange.php | |
| parent | d578b612ea8853682f65ee74fd08f4893152d87a (diff) | |
Improve Automatic Actions plugin api
Diffstat (limited to 'app/Action/TaskMoveColumnCategoryChange.php')
| -rw-r--r-- | app/Action/TaskMoveColumnCategoryChange.php | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/app/Action/TaskMoveColumnCategoryChange.php b/app/Action/TaskMoveColumnCategoryChange.php index 1e12be4a..0f591eda 100644 --- a/app/Action/TaskMoveColumnCategoryChange.php +++ b/app/Action/TaskMoveColumnCategoryChange.php @@ -13,6 +13,17 @@ use Kanboard\Model\Task; class TaskMoveColumnCategoryChange extends Base { /** + * Get automatic action description + * + * @access public + * @return string + */ + public function getDescription() + { + return t('Move the task to another column when the category is changed'); + } + + /** * Get the list of compatible events * * @access public @@ -50,7 +61,6 @@ class TaskMoveColumnCategoryChange extends Base return array( 'task_id', 'column_id', - 'project_id', 'category_id', ); } @@ -71,7 +81,8 @@ class TaskMoveColumnCategoryChange extends Base $data['task_id'], $this->getParam('dest_column_id'), $original_task['position'], - $original_task['swimlane_id'] + $original_task['swimlane_id'], + false ); } |
