summaryrefslogtreecommitdiff
path: root/app/Model/Subtask.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-31 19:51:59 -0500
commit0bc51620c731e7cfd10db5e064fc04693205b21c (patch)
treed73ea3a352561374d8f81eedb6a8dc1dbfdda544 /app/Model/Subtask.php
parent505f62e6cafec1b9ccfc52df4c5441d2568a0ba4 (diff)
Add unit tests for last automatic actions
Diffstat (limited to 'app/Model/Subtask.php')
-rw-r--r--app/Model/Subtask.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Model/Subtask.php b/app/Model/Subtask.php
index 0e039bb3..1e989ad5 100644
--- a/app/Model/Subtask.php
+++ b/app/Model/Subtask.php
@@ -435,10 +435,10 @@ class Subtask extends Base
return $this->db->transaction(function (Database $db) use ($src_task_id, $dst_task_id) {
$subtasks = $db->table(Subtask::TABLE)
- ->columns('title', 'time_estimated', 'position')
- ->eq('task_id', $src_task_id)
- ->asc('position')
- ->findAll();
+ ->columns('title', 'time_estimated', 'position')
+ ->eq('task_id', $src_task_id)
+ ->asc('position')
+ ->findAll();
foreach ($subtasks as &$subtask) {
$subtask['task_id'] = $dst_task_id;