diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-01-25 18:08:28 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-01-25 18:08:28 -0500 |
commit | 1fc6d69e2e25d6e4feaa38fe03dab98c75cfb36c (patch) | |
tree | 984e346cefa4b34b6bb5cfa4454f2156e64fe1da /app/Controller | |
parent | e6cf1bf23648f02615eeeddd34b0f4f2578f1f0a (diff) |
Fix bug duplicate project with a too long name
Diffstat (limited to 'app/Controller')
-rw-r--r-- | app/Controller/Base.php | 1 | ||||
-rw-r--r-- | app/Controller/Project.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index 1f8b243c..e0f99d18 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -36,6 +36,7 @@ use Symfony\Component\EventDispatcher\Event; * @property \Model\Notification $notification * @property \Model\Project $project * @property \Model\ProjectPermission $projectPermission + * @property \Model\ProjectDuplication $projectDuplication * @property \Model\ProjectAnalytic $projectAnalytic * @property \Model\ProjectActivity $projectActivity * @property \Model\ProjectDailySummary $projectDailySummary diff --git a/app/Controller/Project.php b/app/Controller/Project.php index a53c917c..4beb19ce 100644 --- a/app/Controller/Project.php +++ b/app/Controller/Project.php @@ -307,7 +307,7 @@ class Project extends Base $this->checkCSRFParam(); - if ($this->project->duplicate($project['id'])) { + if ($this->projectDuplication->duplicate($project['id'])) { $this->session->flash(t('Project cloned successfully.')); } else { $this->session->flashError(t('Unable to clone this project.')); |