summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMichael Lüpkes <michael@luepkes.net>2015-01-13 14:14:42 +0100
committerMichael Lüpkes <michael@luepkes.net>2015-01-13 14:14:42 +0100
commit99323ba5c80ab01f6d66548262d281e30ecbed6a (patch)
treeb5b0d33a74ab10e75b59bab547f932d1d22efbd7 /app
parent569c99a73302271b80cd7c8a25356ea285606563 (diff)
Removed Project duplication in Controller
Diffstat (limited to 'app')
-rw-r--r--app/Controller/Project.php9
1 files changed, 1 insertions, 8 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 2aa4ac74..d0da53d0 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -307,14 +307,7 @@ class Project extends Base
$this->checkCSRFParam();
- $clone_project_id = $this->project->duplicate($project['id']);
-
- if ($clone_project_id) {
- // Find all task for source project and clone to target project
- $tasks = $this->taskFinder->getAll($project['id']);
- foreach($tasks as $task) {
- $this->taskDuplication->duplicateToProject($task['id'], $clone_project_id);
- }
+ if ($this->project->duplicate($project['id'])) {
$this->session->flash(t('Project cloned successfully.'));
} else {
$this->session->flashError(t('Unable to clone this project.'));