Remove checkbox to simplify task mail form

This commit is contained in:
Frederic Guillot
2017-06-09 18:29:25 -04:00
parent abebd92629
commit 3909814313
29 changed files with 5 additions and 36 deletions

View File

@@ -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 {