Skip to content

Commit

Permalink
feat(ZMS-1711): fix template
Browse files Browse the repository at this point in the history
  • Loading branch information
manjencic committed Dec 13, 2023
1 parent a926588 commit f26c7f7
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 f26c7f7

Please sign in to comment.