Skip to content

Commit

Permalink
feat(ZMS-1711): fix custom template
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Dec 13, 2023
1 parent ad898cc commit b19f436
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions zmsentities/src/Zmsentities/Helper/Messaging.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,9 @@ public static function getMailContent(
}

$template = self::getTemplate('mail', $status, $mainProcess);
return $template;
//if ($initiator) {
// $template = self::getTemplate('admin', $status);
//}
if ($initiator) {
$template = self::getTemplate('admin', $status);
}
if (!$template) {
$exception = new \BO\Zmsentities\Exception\TemplateNotFound("Template for status $status not found");
$exception->data = $status;
Expand Down

0 comments on commit b19f436

Please sign in to comment.