diff --git a/zmsentities/src/Zmsentities/Helper/Messaging.php b/zmsentities/src/Zmsentities/Helper/Messaging.php index 39e7fbc2d..af673258a 100644 --- a/zmsentities/src/Zmsentities/Helper/Messaging.php +++ b/zmsentities/src/Zmsentities/Helper/Messaging.php @@ -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)) {