Fix automatic action condition check
Checks for source column instead of current column because the condition is "moved away" Closes #4277
This commit is contained in:
committed by
Frédéric Guillot
parent
c6df7c081a
commit
c0d8407d9a
@@ -60,8 +60,8 @@ class TaskUpdateStartDateOnMoveColumn extends Base
|
||||
'task_id',
|
||||
'task' => array(
|
||||
'project_id',
|
||||
'column_id',
|
||||
),
|
||||
'src_column_id',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -91,6 +91,6 @@ class TaskUpdateStartDateOnMoveColumn extends Base
|
||||
*/
|
||||
public function hasRequiredCondition(array $data)
|
||||
{
|
||||
return empty($data['task']['date_started']) && $data['task']['column_id'] != $this->getParam('column_id');
|
||||
return empty($data['task']['date_started']) && $data['src_column_id'] == $this->getParam('column_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user