diff --git a/community_server/src/Controller/AppRequestsController.php b/community_server/src/Controller/AppRequestsController.php index 43242af84..4b81b8ac9 100644 --- a/community_server/src/Controller/AppRequestsController.php +++ b/community_server/src/Controller/AppRequestsController.php @@ -341,11 +341,14 @@ class AppRequestsController extends AppController } else { $offset = (( $page - 1 ) * $count) - 1; } - if($offset) { + if($offset && $orderDirection == 'ASC') { // move cursor one step backwards to able to load one transaction previous last which will be shown for decay calculation $offset--; $limit++; $skip_first_transaction = true; + } else if($orderDirection == 'DESC') { + $limit++; + $skip_first_transaction = true; } $stateUserTransactionsQuery = $stateUserTransactionsTable