Add new automatic action: Move task to another column when the category is changed
This commit is contained in:
@@ -21,7 +21,8 @@ class TaskMoveColumnUnAssigned extends Base
|
||||
public function getCompatibleEvents()
|
||||
{
|
||||
return array(
|
||||
Task::EVENT_ASSIGNEE_CHANGE
|
||||
Task::EVENT_ASSIGNEE_CHANGE,
|
||||
Task::EVENT_UPDATE,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -85,6 +86,6 @@ class TaskMoveColumnUnAssigned 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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user