Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #60 from Lurivar/fix/mailIssue
Browse files Browse the repository at this point in the history
Fixed crash when mail_socolissimo isn't created
  • Loading branch information
gillesbourgeat authored Jun 28, 2018
2 parents 4372508 + 79e0277 commit 7f17680
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<descriptive locale="fr_FR">
<title>So Colissimo</title>
</descriptive>
<version>1.4.5</version>
<version>1.4.6</version>
<author>
<name>Thelia</name>
<email>[email protected]</email>
Expand Down
2 changes: 1 addition & 1 deletion Listener/SendMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'.");
}

Expand Down

0 comments on commit 7f17680

Please sign in to comment.