Skip to content

Commit e9f0bdd

Browse files
committed
MC-15250: Explicit product sorting in PageBuilder Products Content type
- Restore current page set
1 parent 932dfe2 commit e9f0bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/Model/Catalog/Sorting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function applySorting(
8787
\Magento\Catalog\Model\ResourceModel\Product\Collection $collection
8888
): \Magento\Catalog\Model\ResourceModel\Product\Collection {
8989
$sortBuilder = $this->getSortingInstance($option);
90-
$_collection = $sortBuilder->sort($collection);
90+
$_collection = $sortBuilder->sort($collection->setCurPage(0));
9191

9292
if ($_collection->isLoaded()) {
9393
$_collection->clear();

0 commit comments

Comments
 (0)