Rename all models
This commit is contained in:
@@ -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.'));
|
||||
|
||||
Reference in New Issue
Block a user