Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

fix project name in mail about create/update task #206

Merged
merged 1 commit into from

2 participants

@greywolfs

No description provided.

@caseysoftware caseysoftware merged commit 392c4ba into web2project:master
@greywolfs greywolfs deleted the greywolfs:taskMail branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 28, 2013
  1. @greywolfs
This page is out of date. Refresh to see the latest.
View
5 classes/w2p/Output/EmailManager.class.php
@@ -171,11 +171,8 @@ public function getFileNotifyContacts(CFile $file)
return $this->getFileNotify($file);
}
- public function getTaskNotify(CTask $task, $user)
+ public function getTaskNotify(CTask $task, $user, $projname)
{
- $project = new CProject();
- $projname = $project->load($task->task_project)->project_name;
-
$body = $this->_AppUI->_('Project', UI_OUTPUT_RAW) . ":\t" . $projname . "\n";
$body .= $this->_AppUI->_('Task', UI_OUTPUT_RAW) . ":\t\t" . $task->task_name . "\n";
//TODO: Priority not working for some reason, will wait till later
View
5 modules/tasks/tasks.class.php
@@ -1215,6 +1215,9 @@ public function notify($comment = '')
$mail = new w2p_Utilities_Mail();
+ $project = new CProject();
+ $projname = $project->load($this->task_project)->project_name;
+
$mail->Subject($projname . '::' . $this->task_name . ' ' . $this->_AppUI->_($this->_action, UI_OUTPUT_RAW), $locale_char_set);
// c = creator
@@ -1252,7 +1255,7 @@ public function notify($comment = '')
if ($mail->ValidEmail($row['assignee_email'])) {
$emailManager = new w2p_Output_EmailManager($this->_AppUI);
- $body = $emailManager->getTaskNotify($this, $row);
+ $body = $emailManager->getTaskNotify($this, $row, $projname);
$mail->Body($body, (isset($GLOBALS['locale_char_set']) ? $GLOBALS['locale_char_set'] : ''));
Something went wrong with that request. Please try again.