mirror of
https://github.com/itflow-org/itflow
synced 2026-11-11 15:07:24 +00:00
20 lines
589 B
PHP
20 lines
589 B
PHP
<?php
|
|
|
|
/*
|
|
* Transfers are the Transfers pill of Transactions now (agent/transactions.php)
|
|
* - across every account, or one. Old links land there, with their filters.
|
|
*/
|
|
|
|
$params = ['show' => 'transfers'];
|
|
$account = intval($_GET['account_from'] ?? 0) ?: intval($_GET['account_to'] ?? 0);
|
|
if ($account) {
|
|
$params['account'] = $account;
|
|
}
|
|
foreach (['q', 'canned_date', 'dtf', 'dtt'] as $key) {
|
|
if (isset($_GET[$key]) && $_GET[$key] !== '') {
|
|
$params[$key] = (string) $_GET[$key];
|
|
}
|
|
}
|
|
header('Location: transactions.php?' . http_build_query($params), true, 302);
|
|
exit;
|