Skip to content

Commit aad69a9

Browse files
authored
add GET param: 'start' to specify starting row
1 parent e2a3536 commit aad69a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

include/pages/api/getusertransactions.inc.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
// Force limit
1515
$limit = 100;
1616
}
17-
$data['transactions'] = $transaction->getTransactions(0, NULL, $limit, $user_id);
17+
if (isset($_REQUEST['start'])) {
18+
$start = $_REQUEST['start'];
19+
} else {
20+
// start at the beginning
21+
$limit = 0;
22+
}
23+
$data['transactions'] = $transaction->getTransactions($start, NULL, $limit, $user_id);
1824

1925
// Fetch summary if enabled
2026
if (!$setting->getValue('disable_transactionsummary')) {

0 commit comments

Comments
 (0)