We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d469f8 commit 8310be3Copy full SHA for 8310be3
app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php
@@ -309,6 +309,10 @@ private function addTierPriceData(ProductCollection $productCollection)
309
*/
310
private function removeItemsWithAbsentProducts()
311
{
312
+ if (count($this->_productIds) === 0) {
313
+ return;
314
+ }
315
+
316
$productCollection = $this->_productCollectionFactory->create()->addIdFilter($this->_productIds);
317
$existingProductsIds = $productCollection->getAllIds();
318
$absentProductsIds = array_diff($this->_productIds, $existingProductsIds);
0 commit comments