Skip to content

Commit fc6b0f8

Browse files
author
OlgaVasyltsun
committed
MC-36048: Unexpected behavior of sorting in the Magento Admin Panel
1 parent 6f39331 commit fc6b0f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Theme/Plugin/Data/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ class Collection
1717
*
1818
* @param \Magento\Framework\Data\Collection $subject
1919
* @param int $result
20-
* @param int $displacement
2120
* @return int
2221
*/
23-
public function afterGetCurPage(\Magento\Framework\Data\Collection $subject, int $result, int $displacement = 0)
22+
public function afterGetCurPage(\Magento\Framework\Data\Collection $subject, int $result)
2423
{
2524
if ($result > $subject->getLastPageNumber()) {
2625
$result = $subject->getLastPageNumber();

0 commit comments

Comments
 (0)