Skip to content

Commit

Permalink
Merge pull request #65 from it-at-m/feature-1711-custom-mail-templates
Browse files Browse the repository at this point in the history
feat(ZMS-1711): fix template
  • Loading branch information
manjencic authored Dec 13, 2023
2 parents b374dab + 5415e6e commit 25755c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zmsentities/src/Zmsentities/Helper/Messaging.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ protected static function getTemplate($type, $status, ?Process $process = null)
{
if ($process) {
$providerName = $process->getCurrentScope()->getProvider()->getName();
$providerName = str_replace(['(', ')', '/'], '', $providerName);
$providerTemplate = 'custom/' . $type . '/' . $status . '/' . $providerName . '.twig';

if (file_exists(TemplateFinder::getTemplatePath() . '/messaging/' . $providerTemplate)) {
Expand Down

0 comments on commit 25755c3

Please sign in to comment.