Skip to content

Commit

Permalink
MAGETWO-57719: [Magento Cloud] - Intermittent HTTP ERROR 500 during c…
Browse files Browse the repository at this point in the history
…heckout
  • Loading branch information
buskamuza committed Sep 14, 2016
1 parent 1ade3b7 commit c966dc1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/code/Magento/CatalogInventory/Helper/Stock.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,10 @@ public function addIsInStockFilterToCollection($collection)
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
);
$resource = $this->getStockStatusResource();
$resource->addStockDataToCollection($collection, !$isShowOutOfStock);
$resource->addStockDataToCollection(
$collection,
!$isShowOutOfStock && $collection->getFlag('require_stock_items')
);
$collection->setFlag($stockFlag, true);
}
}
Expand Down

3 comments on commit c966dc1

@pobrassard
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please push this in the next update!

@mcspronko
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@Ctucker9233
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@buskamuza Will MAGETWO-57719 be included in 2.1.3?

Please sign in to comment.