summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectActionDuplicationController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/Controller/ProjectActionDuplicationController.php
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'app/Controller/ProjectActionDuplicationController.php')
-rw-r--r--app/Controller/ProjectActionDuplicationController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/ProjectActionDuplicationController.php b/app/Controller/ProjectActionDuplicationController.php
index 790b7ed3..a4993cca 100644
--- a/app/Controller/ProjectActionDuplicationController.php
+++ b/app/Controller/ProjectActionDuplicationController.php
@@ -13,7 +13,7 @@ class ProjectActionDuplicationController extends BaseController
public function show()
{
$project = $this->getProject();
- $projects = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
+ $projects = $this->projectUserRoleModel->getProjectsByUser($this->userSession->getId());
unset($projects[$project['id']]);
$this->response->html($this->template->render('project_action_duplication/show', array(
@@ -27,7 +27,7 @@ class ProjectActionDuplicationController extends BaseController
$project = $this->getProject();
$src_project_id = $this->request->getValue('src_project_id');
- if ($this->action->duplicate($src_project_id, $project['id'])) {
+ if ($this->actionModel->duplicate($src_project_id, $project['id'])) {
$this->flash->success(t('Actions duplicated successfully.'));
} else {
$this->flash->failure(t('Unable to duplicate actions.'));