Skip to content

Commit

Permalink
Merge pull request #32 from mundipagg/develop
Browse files Browse the repository at this point in the history
merge Develop into master
  • Loading branch information
LilianaLessa authored Jan 25, 2019
2 parents c1e1603 + 00e087f commit bac00f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Concrete/Magento2PlatformOrderDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public function loadByIncrementId($incrementId)

protected function addMPHistoryComment($message)
{
$this->platformOrder->addCommentToStatusHistory($message);
$historyMethod = 'addCommentToStatusHistory';
if (!method_exists($this->platformOrder, $historyMethod)) {
$historyMethod = 'addStatusHistoryComment';
}
$this->platformOrder->$historyMethod($message);
}

public function setIsCustomerNotified()
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mundipagg/mundipagg-magento2-module",
"license": "MIT",
"version": "1.4.2",
"version": "1.4.3",
"type": "magento2-module",
"description": "Magento 2 Module Mundipagg",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MundiPagg_MundiPagg" setup_version="1.4.2">
<module name="MundiPagg_MundiPagg" setup_version="1.4.3">
<sequence>
<module name="Magento_Sales" />
<module name="Magento_Payment" />
Expand Down

0 comments on commit bac00f6

Please sign in to comment.