From b7324e35598ec8fc6690adf9c0ed5d314f4b11fa Mon Sep 17 00:00:00 2001 From: Igor Manjencic Date: Wed, 13 Dec 2023 11:25:24 +0100 Subject: [PATCH 1/2] feat(ZMS-1711): fix template --- zmsentities/src/Zmsentities/Helper/Messaging.php | 1 + .../B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" | 1 + 2 files changed, 2 insertions(+) create mode 100644 "zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" 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)) { diff --git "a/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" "b/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" new file mode 100644 index 000000000..2e65e8aba --- /dev/null +++ "b/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" @@ -0,0 +1 @@ +dasldsapdsaasdsa \ No newline at end of file From 5415e6e05f55c252a090c0ba974cc26f66d6faa5 Mon Sep 17 00:00:00 2001 From: Igor Manjencic Date: Wed, 13 Dec 2023 11:26:23 +0100 Subject: [PATCH 2/2] feat(ZMS-1711): remove custom template --- .../B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" | 1 - 1 file changed, 1 deletion(-) delete mode 100644 "zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" diff --git "a/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" "b/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" deleted file mode 100644 index 2e65e8aba..000000000 --- "a/zmsentities/templates/messaging/custom/mail/appointment/B\303\274rgerb\303\274ro Forstenrieder Allee KVR-II234.twig" +++ /dev/null @@ -1 +0,0 @@ -dasldsapdsaasdsa \ No newline at end of file