summaryrefslogtreecommitdiff
path: root/app/Controller/TaskMailController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-06-09 18:29:25 -0400
committerFrederic Guillot <fred@kanboard.net>2017-06-09 18:29:25 -0400
commit3909814313f32c75e1957554678b1787e8674be9 (patch)
tree55f1bdcc72469e0cbaecf157bc24235705b41d12 /app/Controller/TaskMailController.php
parentabebd9262957895a20c96fb83c322b7f5988a4ec (diff)
Remove checkbox to simplify task mail form
Diffstat (limited to 'app/Controller/TaskMailController.php')
-rw-r--r--app/Controller/TaskMailController.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/Controller/TaskMailController.php b/app/Controller/TaskMailController.php
index 64b81f8f..feb96a68 100644
--- a/app/Controller/TaskMailController.php
+++ b/app/Controller/TaskMailController.php
@@ -35,13 +35,11 @@ class TaskMailController extends BaseController
$this->sendByEmail($values, $task);
$this->flash->success(t('Task sent by email successfully.'));
- if (isset($values['add_comment']) && $values['add_comment'] == 1) {
- $this->commentModel->create(array(
- 'comment' => t('This task was sent by email to "%s" with subject "%s".', $values['email'], $values['subject']),
- 'user_id' => $this->userSession->getId(),
- 'task_id' => $task['id'],
- ));
- }
+ $this->commentModel->create(array(
+ 'comment' => t('This task was sent by email to "%s" with subject "%s".', $values['email'], $values['subject']),
+ 'user_id' => $this->userSession->getId(),
+ 'task_id' => $task['id'],
+ ));
$this->response->redirect($this->helper->url->to('TaskViewController', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), 'comments'), true);
} else {