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 1dc3a74 commit a926588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zmsentities/src/Zmsentities/Helper/Messaging.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static function getNotificationContent(Process $process, Config $config,
protected static function getTemplate($type, $status, ?Process $process = null)
{
if ($process) {
$provider = $process->getCurrentScope()->getProvider();
$provider = $process->getFirstAppointment()->getScope()->getProvider();
$providerName = $provider->getDisplayName() ?? $provider->getName();
$providerTemplateName = self::getProviderTemplateName($providerName);
$providerTemplate = 'custom/' . $type . '/' . $status . '/' . $providerTemplateName . '.twig';
Expand Down

0 comments on commit a926588

Please sign in to comment.