Fixed to have the short name of the subject instead of InDefero.
This commit is contained in:
parent
7ca43e0ec2
commit
97425529b1
@ -163,8 +163,8 @@ class IDF_Views_Issue
|
|||||||
);
|
);
|
||||||
$oemail = $issue->get_owner()->email;
|
$oemail = $issue->get_owner()->email;
|
||||||
$email = new Pluf_Mail(Pluf::f('from_email'), $oemail,
|
$email = new Pluf_Mail(Pluf::f('from_email'), $oemail,
|
||||||
sprintf(__('Issue %s - %s (InDefero)'),
|
sprintf(__('Issue %s - %s (%s)'),
|
||||||
$issue->id, $issue->summary));
|
$issue->id, $issue->summary, $prj->shortname));
|
||||||
$tmpl = new Pluf_Template('issues/issue-created-email.txt');
|
$tmpl = new Pluf_Template('issues/issue-created-email.txt');
|
||||||
$email->addTextMessage($tmpl->render($context));
|
$email->addTextMessage($tmpl->render($context));
|
||||||
$email->sendMail();
|
$email->sendMail();
|
||||||
@ -281,8 +281,8 @@ class IDF_Views_Issue
|
|||||||
$email = new Pluf_Mail_Batch(Pluf::f('from_email'));
|
$email = new Pluf_Mail_Batch(Pluf::f('from_email'));
|
||||||
foreach ($interested as $user) {
|
foreach ($interested as $user) {
|
||||||
if ($user->id != $request->user->id) {
|
if ($user->id != $request->user->id) {
|
||||||
$email->setSubject(sprintf(__('Updated Issue %s - %s (InDefero)'),
|
$email->setSubject(sprintf(__('Updated Issue %s - %s (%s)'),
|
||||||
$issue->id, $issue->summary));
|
$issue->id, $issue->summary, $prj->shortname));
|
||||||
$email->setTo($user->email);
|
$email->setTo($user->email);
|
||||||
$email->setReturnPath(Pluf::f('from_email'));
|
$email->setReturnPath(Pluf::f('from_email'));
|
||||||
$email->addTextMessage($text_email);
|
$email->addTextMessage($text_email);
|
||||||
|
Loading…
Reference in New Issue
Block a user