From 650ee8835058cee409feeecd53965aa2c9f4c1a9 Mon Sep 17 00:00:00 2001 From: Sanyi Date: Thu, 7 Nov 2024 22:13:59 +0100 Subject: [PATCH] EMA-54 - Event trigger if not default template has been choosen for guests orders not triggered --- CHANGELOG.md | 5 +++++ Events/SenderBuilderPlugin.php | 2 +- composer.json | 2 +- etc/module.xml | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51b40e6..d50d47c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Release notes: ============== +2.0.14 +------- +* Fix + * Fixing email trigger, if not default template has been choosen for guests orders not triggered + 2.0.13 ------- * Fix diff --git a/Events/SenderBuilderPlugin.php b/Events/SenderBuilderPlugin.php index 7bbf1a9..77c6166 100644 --- a/Events/SenderBuilderPlugin.php +++ b/Events/SenderBuilderPlugin.php @@ -284,7 +284,7 @@ private function parseVars(string $key, AbstractModel $object, array &$data): vo */ private function saveEvent(int $websiteId, int $storeId, string $type, int $entityId, array $data): void { - $data = $this->json->serialize($data); + $data = json_encode($data, JSON_INVALID_UTF8_IGNORE); $eventModel = $this->eventFactory ->create() diff --git a/composer.json b/composer.json index bde21ae..e93b862 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "php": ">7.0.1" }, "type": "magento2-module", - "version": "2.0.13", + "version": "2.0.14", "autoload": { "files": [ "registration.php" diff --git a/etc/module.xml b/etc/module.xml index 4f51670..756d798 100644 --- a/etc/module.xml +++ b/etc/module.xml @@ -1,7 +1,7 @@ - +