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

Commit

Permalink
Clear product instance to prevent data leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-pook committed Nov 26, 2019
1 parent 7eee2a9 commit 9b3b578
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Ometria_Magento_Extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ We don't just pull the right data together in one place, we also create ins
Whether it&apos;s with our multi-dimension funnel analysis which flags up specific channels that may be under-performing, or our customer dashboard which spots channels that deliver customers with the best CLV, our &apos;actionable insights&apos; come ready to go.</description>
<license>Open Source License (OSL)</license>
<license_uri>http://opensource.org/licenses/osl-3.0.php</license_uri>
<version>1.1.10</version>
<version>1.1.11</version>
<stability>stable</stability>
<notes>Add more ways to work out if a product is in stock and saleable.</notes>
<authors>
Expand Down
4 changes: 2 additions & 2 deletions app/code/community/Ometria/AbandonedCarts/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ometria_AbandonedCarts>
<version>1.1.10</version>
<version>1.1.11</version>
</Ometria_AbandonedCarts>
</modules>

Expand Down Expand Up @@ -57,4 +57,4 @@
</resources>
</acl>
</adminhtml>
</config>
</config>
4 changes: 3 additions & 1 deletion app/code/community/Ometria/Api/Model/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ public function get_products($ids) {
$listings = $this->_resolveStoreListings($listings, $store_ids, $productMediaConfig);
$info['store_listings'] = $listings;

// Clear product instance to prevent data leak
$product->clearInstance();
} catch(Exception $e){
$info = false;
}
Expand Down Expand Up @@ -639,4 +641,4 @@ private function _getParentProductsMapping($product_ids){

return $ret;
}
}
}
4 changes: 2 additions & 2 deletions app/code/community/Ometria/Api/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ometria_Api>
<version>1.1.10</version>
<version>1.1.11</version>
</Ometria_Api>
</modules>

Expand Down Expand Up @@ -31,4 +31,4 @@
</modules>
</suite>
</phpunit>
</config>
</config>
2 changes: 1 addition & 1 deletion app/code/community/Ometria/Core/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<config>
<modules>
<Ometria_Core>
<version>1.1.10</version>
<version>1.1.11</version>
</Ometria_Core>
</modules>

Expand Down

0 comments on commit 9b3b578

Please sign in to comment.