summaryrefslogtreecommitdiff
path: root/app/Action/TaskMoveColumnAssigned.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-06-13 22:03:12 -0400
committerFrederic Guillot <fred@kanboard.net>2015-06-13 22:03:12 -0400
commitd577c73e46de23742bc069d0a444f0bedeca5abc (patch)
tree0cb485ab0f2b2140f4029538050f30658798a066 /app/Action/TaskMoveColumnAssigned.php
parent0dc247dca1336b5bdd2f6fec292d47b8ef65ca19 (diff)
Add new automatic action: Move task to another column when the category is changed
Diffstat (limited to 'app/Action/TaskMoveColumnAssigned.php')
-rw-r--r--app/Action/TaskMoveColumnAssigned.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Action/TaskMoveColumnAssigned.php b/app/Action/TaskMoveColumnAssigned.php
index decf4b01..70ad7699 100644
--- a/app/Action/TaskMoveColumnAssigned.php
+++ b/app/Action/TaskMoveColumnAssigned.php
@@ -22,6 +22,7 @@ class TaskMoveColumnAssigned extends Base
{
return array(
Task::EVENT_ASSIGNEE_CHANGE,
+ Task::EVENT_UPDATE,
);
}
@@ -85,6 +86,6 @@ class TaskMoveColumnAssigned extends Base
*/
public function hasRequiredCondition(array $data)
{
- return $data['column_id'] == $this->getParam('src_column_id') && $data['owner_id'];
+ return $data['column_id'] == $this->getParam('src_column_id') && $data['owner_id'] > 0;
}
}