* adjust position for the function of clear.

This commit is contained in:
wyd621
2014-03-24 01:15:44 +00:00
parent aa7a270e68
commit 01d820accb
6 changed files with 22 additions and 6 deletions
+4 -1
View File
@@ -769,6 +769,9 @@ class task extends control
*/
public function sendmail($taskID, $actionID)
{
/* Reset $this->output. */
$this->clear();
/* Set toList and ccList. */
$task = $this->task->getById($taskID);
$projectName = $this->project->getById($task->project)->name;
@@ -805,7 +808,7 @@ class task extends control
$this->view->task = $task;
$this->view->action = $action;
$this->view->users = $users;
$this->clear();
$mailContent = $this->parse($this->moduleName, 'sendmail');
/* Send emails. */