Fix subtasks copy.

Copy of current redmine view code with copy_subtasks checkbox.