mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix again
This commit is contained in:
parent
1dadb58086
commit
f78194a767
@ -341,11 +341,14 @@ class AppRequestsController extends AppController
|
|||||||
} else {
|
} else {
|
||||||
$offset = (( $page - 1 ) * $count) - 1;
|
$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
|
// move cursor one step backwards to able to load one transaction previous last which will be shown for decay calculation
|
||||||
$offset--;
|
$offset--;
|
||||||
$limit++;
|
$limit++;
|
||||||
$skip_first_transaction = true;
|
$skip_first_transaction = true;
|
||||||
|
} else if($orderDirection == 'DESC') {
|
||||||
|
$limit++;
|
||||||
|
$skip_first_transaction = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
$stateUserTransactionsQuery = $stateUserTransactionsTable
|
$stateUserTransactionsQuery = $stateUserTransactionsTable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user