From 648dc6bcfbdd44947ec58e2f3662c1cc3844d782 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 2 Nov 2017 15:41:58 -0700 Subject: Add predefined templates for task descriptions --- app/Controller/ProjectPredefinedContentController.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'app/Controller/ProjectPredefinedContentController.php') diff --git a/app/Controller/ProjectPredefinedContentController.php b/app/Controller/ProjectPredefinedContentController.php index 1195dfa3..709d6b79 100644 --- a/app/Controller/ProjectPredefinedContentController.php +++ b/app/Controller/ProjectPredefinedContentController.php @@ -10,13 +10,6 @@ namespace Kanboard\Controller; */ class ProjectPredefinedContentController extends BaseController { - /** - * Edit project - * - * @access public - * @param array $values - * @param array $errors - */ public function show(array $values = array(), array $errors = array()) { $project = $this->getProject(); @@ -25,15 +18,11 @@ class ProjectPredefinedContentController extends BaseController 'values' => empty($values) ? $project : $values, 'errors' => $errors, 'project' => $project, - 'title' => t('Predefined Contents') + 'predefined_task_descriptions' => $this->predefinedTaskDescriptionModel->getAll($project['id']), + 'title' => t('Predefined Contents'), ))); } - /** - * Validate and update a project - * - * @access public - */ public function update() { $project = $this->getProject(); -- cgit v1.2.3