Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1641 from ojs/feature/journal-index-mail
Browse files Browse the repository at this point in the history
journal param support on journal index create action
  • Loading branch information
behram authored Nov 11, 2016
2 parents 48a12f6 + 73b8a85 commit 9b9e68f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getMailEventsOptions()
{
return [
new EventDetail(self::POST_CREATE, 'journal', [
'index', 'done.by', 'receiver.username', 'receiver.fullName',
'index', 'done.by', 'receiver.username', 'receiver.fullName', 'journal',
]),
new EventDetail(self::POST_UPDATE, 'journal', [
'index', 'done.by', 'receiver.username', 'receiver.fullName',
Expand Down
1 change: 1 addition & 0 deletions src/Ojs/JournalBundle/Listeners/JournalIndexMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function onJournalIndexPostCreate(JournalItemEvent $itemEvent)
'done.by' => $this->ojsMailer->currentUser()->getUsername(),
'receiver.username' => $user->getUsername(),
'receiver.fullName' => $user->getFullName(),
'journal' => (string)$itemEvent->getItem()->getJournal(),
];
$template = $this->ojsMailer->transformTemplate($getMailEvent->getTemplate(), $transformParams);
$this->ojsMailer->sendToUser(
Expand Down

0 comments on commit 9b9e68f

Please sign in to comment.