summaryrefslogtreecommitdiff
path: root/app/Controller/Project.php
diff options
context:
space:
mode:
authorMichael Lüpkes <michael@luepkes.net>2015-02-03 11:16:10 +0100
committerMichael Lüpkes <michael@luepkes.net>2015-02-03 11:16:10 +0100
commite5ea36125536b5ac8f8a7e31c2602e9bd1b52075 (patch)
tree1879bcf0ca1fb3f7ea7375c548fdc00ab75e715a /app/Controller/Project.php
parent24300f828a684eedf71d63374effb2be95c13b1a (diff)
Implemented Changes to Project Duplication to include Swimlanes and Tasks.
ProjectDuplication::duplicate accepts additional param of type array now. Array includes which optional parts to duplicate. Optional parts are: 'swimlane', 'category', 'task', 'action'.
Diffstat (limited to 'app/Controller/Project.php')
-rw-r--r--app/Controller/Project.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php
index 8178ab5f..842ed6e8 100644
--- a/app/Controller/Project.php
+++ b/app/Controller/Project.php
@@ -297,7 +297,7 @@ class Project extends Base
/**
* Duplicate a project
*
- * @author Antonio Rabelo
+ * @author Antonio Rabelo & Michael Lüpkes
* @access public
*/
public function duplicate()
@@ -305,10 +305,8 @@ class Project extends Base
$project = $this->getProject();
if ($this->request->getStringParam('duplicate') === 'yes') {
-
- $this->checkCSRFParam();
-
- if ($this->projectDuplication->duplicate($project['id'])) {
+ $values = array_keys($this->request->getValues());
+ if ($this->projectDuplication->duplicate($project['id'], $values)) {
$this->session->flash(t('Project cloned successfully.'));
} else {
$this->session->flashError(t('Unable to clone this project.'));