Add new automatic action: Move task to another column when the category is changed

This commit is contained in:
Frederic Guillot
2015-06-13 22:03:12 -04:00
parent 0dc247dca1
commit d577c73e46
8 changed files with 186 additions and 9 deletions

View File

@@ -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;
}
}