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 e062e71 commit c4dfa5dCopy full SHA for c4dfa5d
app/code/Magento/PageBuilder/Model/Catalog/Sorting/StockAbstract.php
@@ -44,7 +44,7 @@ public function sort(
44
return $collection;
45
}
46
47
- $baseSet = clone $collection;
+ $baseSetIds = $collection->getAllIds();
48
$finalSet = clone $collection;
49
$collection->setCurPage(0);
50
@@ -96,7 +96,7 @@ public function sort(
96
$resultIds[] = $item->getId();
97
98
99
- $ids = array_unique(array_merge($resultIds, $baseSet->getAllIds()));
+ $ids = array_unique(array_merge($resultIds, $baseSetIds));
100
101
$finalSet->getSelect()
102
->reset(DB\Select::ORDER)
0 commit comments