+change code for task#407/408/409
This commit is contained in:
@@ -415,8 +415,8 @@ class task extends control
|
||||
private function sendmail($taskID, $actionID)
|
||||
{
|
||||
/* Set toList and ccList. */
|
||||
$task = $this->task->getByID($taskID);
|
||||
$projectName = $this->project->getByID($task->project)->name;
|
||||
$task = $this->task->getById($taskID);
|
||||
$projectName = $this->project->getById($task->project)->name;
|
||||
$toList = $task->assignedTo;
|
||||
$ccList = trim($task->mailto, ',');
|
||||
|
||||
@@ -452,7 +452,7 @@ class task extends control
|
||||
$mailContent = $this->parse($this->moduleName, 'sendmail');
|
||||
|
||||
/* Send emails. */
|
||||
$this->loadModel('mail')->send($toList, $projectName. ':'. 'TASK#' . $task->id . $this->lang->colon . $task->name, $mailContent, $ccList);
|
||||
$this->loadModel('mail')->send($toList, $projectName . ':' . 'TASK#' . $task->id . $this->lang->colon . $task->name, $mailContent, $ccList);
|
||||
if($this->mail->isError()) echo js::error($this->mail->getError());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user