diff options
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.')); |