Skip to content

Commit

Permalink
Bug: 14209 Move subtasks when moving a task to another tasklist.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Dec 24, 2015
1 parent 248afc2 commit f1c5231
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions nag/lib/Driver.php
Expand Up @@ -289,6 +289,14 @@ public function modify($taskId, array $properties)
}
$log_tasklist = $properties['tasklist'];
}
$task->loadChildren();
if ($task->hasSubTasks()) {
foreach ($task->children as $child_task) {
$child_task = $child_task->toHash();
$child_task['tasklist'] = $properties['tasklist'];
$this->modify($child_task['task_id'], $child_task);
}
}
}

/* Update alarm if necessary. */
Expand Down

0 comments on commit f1c5231

Please sign in to comment.