summaryrefslogtreecommitdiff
path: root/app/Model/TaskPosition.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Model/TaskPosition.php')
-rw-r--r--app/Model/TaskPosition.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Model/TaskPosition.php b/app/Model/TaskPosition.php
index 2c271de7..9733999b 100644
--- a/app/Model/TaskPosition.php
+++ b/app/Model/TaskPosition.php
@@ -30,7 +30,10 @@ class TaskPosition extends Base
$result = $this->calculateAndSave($project_id, $task_id, $column_id, $position, $swimlane_id);
if ($result) {
-
+ if ($original_task['column_id'] != $column_id) {
+ $this->db->table(Task::TABLE)->eq('id', $task_id)->update(array('date_moved' => time(),
+ ));
+ }
if ($original_task['swimlane_id'] != $swimlane_id) {
$this->calculateAndSave($project_id, 0, $column_id, 1, $original_task['swimlane_id']);
}