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()
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 }
You can’t perform that action at this time.
0 commit comments