Improve automatic action creation

This commit is contained in:
Frederic Guillot
2016-03-05 17:40:49 -05:00
parent a19dc88567
commit 22c5e32def
12 changed files with 239 additions and 195 deletions

View File

@@ -16,7 +16,7 @@ class ActionProject extends Base
$projects = $this->projectUserRole->getProjectsByUser($this->userSession->getId());
unset($projects[$project['id']]);
$this->response->html($this->helper->layout->project('action_project/project', array(
$this->response->html($this->template->render('action_project/project', array(
'project' => $project,
'projects_list' => $projects,
)));
@@ -33,6 +33,6 @@ class ActionProject extends Base
$this->flash->failure(t('Unable to duplicate actions.'));
}
$this->response->redirect($this->helper->url->to('Action', 'index', array('project_id' => $project['id'])));
$this->response->redirect($this->helper->url->to('action', 'index', array('project_id' => $project['id'])));
}
}