Skip to content

Commit

Permalink
Merge pull request #70 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 31e36a2 + f26c7f7 commit 5a5fdf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zmsentities/src/Zmsentities/Helper/Messaging.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ public static function getNotificationContent(Process $process, Config $config,
protected static function getTemplate($type, $status, ?Process $process = null)
{
if ($process) {
$provider = $process->getFirstAppointment()->getScope()->getProvider();
$providerName = $provider->getDisplayName() ?? $provider->getName();
$provider = $process->scope->provider;
$providerName = $provider->displayName;
$providerTemplateName = self::getProviderTemplateName($providerName);
$providerTemplate = 'custom/' . $type . '/' . $status . '/' . $providerTemplateName . '.twig';

Expand Down

0 comments on commit 5a5fdf4

Please sign in to comment.