Skip to content

Commit

Permalink
[HOY-327] Correct show out of stock handling
Browse files Browse the repository at this point in the history
magento/magento2#8566

Applies to:
- 2.1.3-2.1.11
- 2.0.*
  • Loading branch information
unicoder88 committed Dec 20, 2017
1 parent 582d259 commit 9535b90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Patch-Magento_CatalogInventory_M2.1.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Helper/Stock.php 2017-12-20 22:34:03.499213047 +0300
+++ Helper/Stock.php 2017-12-20 22:34:50.842368545 +0300
@@ -156,7 +156,7 @@
$resource = $this->getStockStatusResource();
$resource->addStockDataToCollection(
$collection,
- !$isShowOutOfStock && $collection->getFlag('require_stock_items')
+ !$isShowOutOfStock || $collection->getFlag('require_stock_items')
);
$collection->setFlag($stockFlag, true);
}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Full example:
"Fix: catalog_product_flat does not update column with empty value. Fix options linking.": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_Catalog-M2.1.4-product-flat-indexer.patch",
"Fix: https://github.com/magento/magento2/issues/4387": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_Catalog-M2.1-fix-product-auto-startdates.patch"
},
"magento/module-catalog-inventory": {
"Fix: https://github.com/magento/magento2/issues/8566": "https://raw.githubusercontent.com/ConvertGroupsAS/magento2-patches/master/Patch-Magento_CatalogInventory_M2.1.3.patch"
},
"magento/module-catalog-rule": {
"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"
},
Expand Down

0 comments on commit 9535b90

Please sign in to comment.