diff --git a/CHANGELOG.md b/CHANGELOG.md index e27552c..d805577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.4.6 +- Displays an arror message instead of crashing when "mail_socolissimo" isn't created, thus allowing to not send any confirmation email. + +# 1.4.5 +- Fixed crash when using getCartAmount while cartAmount is null + # 1.4.4 - create loops: AreaFreeshippingDom and AreaFreeshippingPr - update template for to add these loops diff --git a/Config/module.xml b/Config/module.xml index 4daddf6..095ed85 100755 --- a/Config/module.xml +++ b/Config/module.xml @@ -7,7 +7,7 @@ So Colissimo - 1.4.5 + 1.4.6 Thelia info@thelia.net diff --git a/Listener/SendMail.php b/Listener/SendMail.php index 172bfc3..7eea805 100755 --- a/Listener/SendMail.php +++ b/Listener/SendMail.php @@ -64,7 +64,7 @@ public function updateStatus(OrderEvent $event) ->filterByName('mail_socolissimo') ->findOne(); - if (false === $message) { + if (false === $message || null === $message) { throw new \Exception("Failed to load message 'order_confirmation'."); }