summaryrefslogtreecommitdiff
path: root/app/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller')
-rw-r--r--app/Controller/TaskBulkController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Controller/TaskBulkController.php b/app/Controller/TaskBulkController.php
index 4345a68f..0f49fb76 100644
--- a/app/Controller/TaskBulkController.php
+++ b/app/Controller/TaskBulkController.php
@@ -35,6 +35,7 @@ class TaskBulkController extends BaseController
'users_list' => $this->projectUserRoleModel->getAssignableUsersList($project['id'], true, false, $project['is_private'] == 1),
'colors_list' => $this->colorModel->getList(),
'categories_list' => $this->categoryModel->getList($project['id']),
+ 'task_description_templates' => $this->predefinedTaskDescriptionModel->getList($project['id']),
)));
}
@@ -85,8 +86,18 @@ class TaskBulkController extends BaseController
'owner_id' => empty($values['owner_id']) ? 0 : $values['owner_id'],
'color_id' => $values['color_id'],
'project_id' => $project['id'],
+ 'description' => $this->getTaskDescription($project, $values),
));
}
}
}
+
+ protected function getTaskDescription(array $project, array $values)
+ {
+ if (empty($values['task_description_template_id'])) {
+ return '';
+ }
+
+ return $this->predefinedTaskDescriptionModel->getDescriptionById($project['id'], $values['task_description_template_id']);
+ }
}