[UPDATE][#2713] Adding transaction filter
API now supports filters just as the GUI version, closing #2713 :)
This commit is contained in:
parent
61670a1c44
commit
01c75f49ff
@ -20,8 +20,13 @@ if (isset($_REQUEST['limit']) && $_REQUEST['limit'] <= 100) {
|
||||
// Force limit
|
||||
$limit = 100;
|
||||
}
|
||||
if (isset($_REQUEST['filter']) && is_array($_REQUEST['filter'])) {
|
||||
$filter = $_REQUEST['filter'];
|
||||
} else {
|
||||
$filter = NULL;
|
||||
}
|
||||
|
||||
$data['transactions'] = $transaction->getTransactions($start, NULL, $limit, $user_id);
|
||||
$data['transactions'] = $transaction->getTransactions($start, $filter, $limit, $user_id);
|
||||
|
||||
// Fetch summary if enabled
|
||||
if (!$setting->getValue('disable_transactionsummary')) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user