Skip to content

Commit

Permalink
2.2.8 - fix store id compare in customer update observer
Browse files Browse the repository at this point in the history
  • Loading branch information
bnayalivne committed Oct 22, 2017
1 parent b7eee0a commit 8709e5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Model/Api/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ public function setConfig($mage_store_id, $configName, $scope, $newValue)
*/
public function getVersion()
{
return '2.2.7';
return '2.2.8';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion Observer/TriggerCustomerUpdateObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)

$isNew = $customer->getCreatedAt() == $customer->getUpdatedAt();

if($customerOld && $customerOld->getStoreId() !== $customer->getStoreId()){
if($customerOld && $customerOld->getStoreId() != $customer->getStoreId()){
//customer moved to a new store, send delete event to previous store
$oldStore = $this->storeManager->getStore($customerOld->getStoreId());
if($this->isWebhooksEnabled($oldStore)) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lib-libxml": "*"
},
"type": "magento2-module",
"version": "2.2.7",
"version": "2.2.8",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Remarkety_Mgconnector" setup_version="2.2.7">
<module name="Remarkety_Mgconnector" setup_version="2.2.8">
</module>
</config>

0 comments on commit 8709e5b

Please sign in to comment.