diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-02-07 14:36:24 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-02-07 14:36:24 -0500 |
commit | 73b44f15507e5eec3377eaf9fb7419fdfd73d2e8 (patch) | |
tree | d06f0d0886f066e5f38b46a6a493801a6113efc7 /app/Model/ProjectDuplication.php | |
parent | a6b3306072e910d5d51f87a5f5f6df95ecff3e5e (diff) |
Uncheck tasks and swimlanes from project duplication and update translations
Diffstat (limited to 'app/Model/ProjectDuplication.php')
-rw-r--r-- | app/Model/ProjectDuplication.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/Model/ProjectDuplication.php b/app/Model/ProjectDuplication.php index b93cbee5..7e3407be 100644 --- a/app/Model/ProjectDuplication.php +++ b/app/Model/ProjectDuplication.php @@ -61,7 +61,7 @@ class ProjectDuplication extends Base * * @param integer $project_id Project Id * @param array $part_selection Selection of optional project parts to duplicate. Possible options: 'swimlane', 'action', 'category', 'task' - * @return integer Cloned Project Id + * @return integer Cloned Project Id */ public function duplicate($project_id, $part_selection = array('category', 'action')) { @@ -90,16 +90,14 @@ class ProjectDuplication extends Base } } - $this->db->closeTransaction(); - //* Clone Tasks if in $part_selection - - if(in_array('task', $part_selection)) { + // Clone Tasks if in $part_selection + if (in_array('task', $part_selection)) { $tasks = $this->taskFinder->getAll($project_id); foreach ($tasks as $task) { - if (!$this->taskDuplication->duplicateToProject($task['id'], $clone_project_id)) { + if (! $this->taskDuplication->duplicateToProject($task['id'], $clone_project_id)) { return false; } } |