* finish task #2320.
This commit is contained in:
@@ -1104,7 +1104,7 @@ class bug extends control
|
||||
$mailContent = $this->parse($this->moduleName, 'sendmail');
|
||||
|
||||
/* Send it. */
|
||||
$this->loadModel('mail')->send($toList, $productName . ':' . 'BUG #'. $bug->id . $this->lang->colon . $bug->title, $mailContent, $ccList);
|
||||
$this->loadModel('mail')->send($toList, 'BUG #'. $bug->id . $this->lang->colon . $bug->title . ' - ' . $productName, $mailContent, $ccList);
|
||||
if($this->mail->isError()) trigger_error(join("\n", $this->mail->getError()));
|
||||
}
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ class fileModel extends model
|
||||
*/
|
||||
public function parseCSV($fileName)
|
||||
{
|
||||
$handle = fopen($this->session->importFile, 'r');
|
||||
$handle = fopen($fileName, 'r');
|
||||
$col = -1;
|
||||
$row = 0;
|
||||
$data = array();
|
||||
@@ -369,7 +369,7 @@ class fileModel extends model
|
||||
$row ++;
|
||||
$col = -1;
|
||||
}
|
||||
fclose ($handle);
|
||||
fclose($handle);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -1267,7 +1267,7 @@ class project 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, 'TASK#' . $task->id . $this->lang->colon . $task->name . ' - ' . $projectName, $mailContent, $ccList);
|
||||
if($this->mail->isError()) trigger_error(join("\n", $this->mail->getError()));
|
||||
}
|
||||
|
||||
|
||||
@@ -1074,7 +1074,7 @@ class story extends control
|
||||
$mailContent = $this->parse($this->moduleName, 'sendmail');
|
||||
|
||||
/* Send it. */
|
||||
$this->loadModel('mail')->send($toList, $productName . ':' . 'STORY #' . $story->id . $this->lang->colon . $story->title, $mailContent, $ccList);
|
||||
$this->loadModel('mail')->send($toList, 'STORY #' . $story->id . $this->lang->colon . $story->title . ' - ' . $productName, $mailContent, $ccList);
|
||||
if($this->mail->isError()) trigger_error(join("\n", $this->mail->getError()));
|
||||
}
|
||||
/**
|
||||
|
||||
@@ -930,7 +930,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, 'TASK#' . $task->id . $this->lang->colon . $task->name . ' - ' . $projectName, $mailContent, $ccList);
|
||||
if($this->mail->isError()) trigger_error(join("\n", $this->mail->getError()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user