Skip to content
This repository has been archived by the owner on Jun 1, 2018. It is now read-only.

Commit

Permalink
Problem with mixed emails sent when made simultaneously on checkout s…
Browse files Browse the repository at this point in the history
…olved. closes#147
  • Loading branch information
Santiagoebizmarts committed Sep 13, 2016
1 parent 21e9d7e commit baac9ab
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/code/community/Ebizmarts/MageMonkey/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<config>
<modules>
<Ebizmarts_MageMonkey>
<version>1.2.6</version>
<version>1.2.6.1</version>
</Ebizmarts_MageMonkey>
</modules>
<global>
Expand Down
11 changes: 4 additions & 7 deletions app/code/community/Ebizmarts/Mandrill/Model/Email/Queue.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,9 @@ public function getMail($storeId)
if (!Mage::getStoreConfig(Ebizmarts_Mandrill_Model_System_Config::ENABLE, $storeId)) {
return parent::getMail();
}
if ($this->_mail) {
return $this->_mail;
} else {
Mage::helper('ebizmarts_mandrill')->log("store: $storeId API: " . Mage::getStoreConfig(Ebizmarts_Mandrill_Model_System_Config::APIKEY, $storeId));
$this->_mail = new Mandrill_Message(Mage::getStoreConfig(Ebizmarts_Mandrill_Model_System_Config::APIKEY, $storeId));
return $this->_mail;
}

Mage::helper('ebizmarts_mandrill')->log("store: $storeId API: " . Mage::getStoreConfig(Ebizmarts_Mandrill_Model_System_Config::APIKEY, $storeId));
$this->_mail = new Mandrill_Message(Mage::getStoreConfig(Ebizmarts_Mandrill_Model_System_Config::APIKEY, $storeId));
return $this->_mail;
}
}
2 changes: 1 addition & 1 deletion app/code/community/Ebizmarts/Mandrill/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ebizmarts_Mandrill>
<version>2.0.11</version>
<version>2.0.12</version>
</Ebizmarts_Mandrill>
</modules>
<global>
Expand Down

1 comment on commit baac9ab

@Santiagoebizmarts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #147

Please sign in to comment.