summaryrefslogtreecommitdiff
path: root/app/Action
diff options
context:
space:
mode:
authorRafael de Camargo <rafacamargo123@gmail.com>2019-08-28 00:23:48 -0300
committerFrédéric Guillot <fred@kanboard.net>2019-08-27 20:51:27 -0700
commitc0d8407d9a880a8e05063281b129fc84b73017b5 (patch)
tree55da489f26b46ffdd9d0891a3a80f904690ae414 /app/Action
parentc6df7c081a05139d42d571bbfa74395fcbf3fa4c (diff)
Fix automatic action condition check
Checks for source column instead of current column because the condition is "moved away" Closes #4277
Diffstat (limited to 'app/Action')
-rw-r--r--app/Action/TaskUpdateStartDateOnMoveColumn.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Action/TaskUpdateStartDateOnMoveColumn.php b/app/Action/TaskUpdateStartDateOnMoveColumn.php
index 8a00bbab..c386d1e1 100644
--- a/app/Action/TaskUpdateStartDateOnMoveColumn.php
+++ b/app/Action/TaskUpdateStartDateOnMoveColumn.php
@@ -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');
}
}