Skip to content

Commit 2ed870b

Browse files
committed
Fixed Configurable Products Pagination issue
1 parent 9031dfe commit 2ed870b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

app/code/Magento/Sales/Block/Order/Items.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getOrder()
144144
*/
145145
private function preparePager(AbstractBlock $pagerBlock): void
146146
{
147-
$collectionToPager = $this->createItemsCollection();
147+
$collectionToPager = $this->itemCollection;
148148
$collectionToPager->addFieldToFilter('parent_item_id', ['null' => true]);
149149
$pagerBlock->setLimit($this->itemsPerPage);
150150
$pagerBlock->setAvailableLimit([$this->itemsPerPage]);
@@ -161,9 +161,6 @@ private function createItemsCollection(): Collection
161161
{
162162
$collection = $this->itemCollectionFactory->create();
163163
$collection->setOrderFilter($this->getOrder());
164-
$currentPage = (int)$this->getRequest()->getParam('p', 1);
165-
$collection->setCurPage($currentPage);
166-
$collection->setPageSize($this->itemsPerPage);
167164

168165
return $collection;
169166
}

0 commit comments

Comments
 (0)