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.
2 parents ebb577a + 11d5242 commit 3126d53Copy full SHA for 3126d53
app/code/Magento/Quote/Model/ResourceModel/Quote/Item/Collection.php
@@ -272,6 +272,10 @@ protected function _assignProducts()
272
*/
273
private function removeItemsWithAbsentProducts()
274
{
275
+ if (count($this->_productIds) === 0) {
276
+ return;
277
+ }
278
+
279
$productCollection = $this->_productCollectionFactory->create()->addIdFilter($this->_productIds);
280
$existingProductsIds = $productCollection->getAllIds();
281
$absentProductsIds = array_diff($this->_productIds, $existingProductsIds);
0 commit comments