File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
app/code/Magento/Sales/Block/Order Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public function getOrder()
144
144
*/
145
145
private function preparePager (AbstractBlock $ pagerBlock ): void
146
146
{
147
- $ collectionToPager = $ this ->createItemsCollection () ;
147
+ $ collectionToPager = $ this ->itemCollection ;
148
148
$ collectionToPager ->addFieldToFilter ('parent_item_id ' , ['null ' => true ]);
149
149
$ pagerBlock ->setLimit ($ this ->itemsPerPage );
150
150
$ pagerBlock ->setAvailableLimit ([$ this ->itemsPerPage ]);
@@ -161,9 +161,6 @@ private function createItemsCollection(): Collection
161
161
{
162
162
$ collection = $ this ->itemCollectionFactory ->create ();
163
163
$ collection ->setOrderFilter ($ this ->getOrder ());
164
- $ currentPage = (int )$ this ->getRequest ()->getParam ('p ' , 1 );
165
- $ collection ->setCurPage ($ currentPage );
166
- $ collection ->setPageSize ($ this ->itemsPerPage );
167
164
168
165
return $ collection ;
169
166
}
You can’t perform that action at this time.
0 commit comments