Skip to content

Commit 690b77f

Browse files
[NS-817] Magento Catalog Inventory 2.3.3-2.3.4 - Fix: Stock Indexer deletes new records
1 parent 1fc4a7a commit 690b77f

2 files changed

+21
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--- Model/ResourceModel/Indexer/Stock/DefaultStock.php
2+
+++ Model/ResourceModel/Indexer/Stock/DefaultStock.php
3+
@@ -292,6 +292,7 @@
4+
*/
5+
protected function _updateIndex($entityIds)
6+
{
7+
+ $this->deleteOldRecords($entityIds);
8+
$connection = $this->getConnection();
9+
$select = $this->_getStockStatusSelect($entityIds, true);
10+
$select = $this->getQueryProcessorComposite()->processQuery($select, $entityIds, true);
11+
@@ -314,7 +315,6 @@
12+
}
13+
}
14+
15+
- $this->deleteOldRecords($entityIds);
16+
$this->_updateIndexTable($data);
17+
18+
return $this;

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ magento/module-catalog-inventory|Patch-Magento\_CatalogInventory\_M2.1.3-hide-ou
8181
magento/module-catalog-inventory|Patch-Magento\_CatalogInventory-M2.1.x-stock-item-events-fix.patch|#4857|<2.2.0
8282
magento/module-catalog-inventory|Patch-Magento_CatalogInventory-M2.2.0-2.2.3-fix-update-stock-item-on-product-save.patch|Fix: Update stock item on product save|>=2.2.0 <2.2.4
8383
magento/module-catalog-inventory|Patch-Magento_CatalogInventory-M2.2.0-2.2.4-stock-index.patch|#12205|>=2.2.0 <2.2.5
84+
magento/module-catalog-inventory|Patch-Magento_CatalogInventory-M2.3.3-2.3.4-fix-stock-indexer-deleting-new-records.patch|#15984|2.3.3-2.3.4
8485
magento/module-catalog-rule|Patch-Magento-Catalog-Rule-M2.1.X-cron-job.patch|Q-67970|>= 2.1.0 >= 2.2.0
8586
magento/module-catalog-staging|Patch-Magento_Catalog_Staging-timestam.patch| | ?
8687
magento/module-catalog-url-rewrite|Patch-Magento\_CatalogUrlRewrite-M2.1.4-regeneration-without-changes-fix.patch (install 2 patches *-regeneration-without-changes-fix)|#7874|>=2.1.4 < 2.1.9
@@ -232,7 +233,8 @@ Full composer.json example:
232233
"Fix: https://github.com/magento/magento2/issues/8566": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory_M2.1.3-hide-out-of-stock.patch",
233234
"Fix: https://github.com/magento/magento2/issues/4857": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory-M2.1.x-stock-item-events-fix.patch",
234235
"Fix: Update stock item on product save": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory-M2.2.0-2.2.3-fix-update-stock-item-on-product-save.patch",
235-
"Fix: https://github.com/magento/magento2/issues/12205": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory-M2.2.0-2.2.4-stock-index.patch"
236+
"Fix: https://github.com/magento/magento2/issues/12205": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory-M2.2.0-2.2.4-stock-index.patch",
237+
"Fix: https://github.com/magento/magento2/issues/15984": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory-M2.3.3-2.3.4-fix-stock-indexer-deleting-new-records.patch"
236238
},
237239
"magento/module-catalog-rule": {
238240
"Fix: https://magento.stackexchange.com/questions/67970/catalog-price-rules-disappear-after-mid-night": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento-Catalog-Rule-M2.1.X-cron-job.patch"

0 commit comments

Comments
 (0)