From a79c1c8246c836028b20ec089c2e2ffb9fee8075 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 17 Nov 2025 14:55:05 -0500 Subject: [PATCH] Remove Duplicate get_query_strings code as this is all handled in the the filter header --- agent/assets.php | 3 --- agent/documents.php | 3 --- agent/files.php | 3 --- agent/payments.php | 3 --- agent/recurring_expenses.php | 3 --- agent/revenues.php | 3 --- agent/transfers.php | 4 ---- agent/trips.php | 3 --- 8 files changed, 25 deletions(-) diff --git a/agent/assets.php b/agent/assets.php index 237ed926..860f4cf2 100644 --- a/agent/assets.php +++ b/agent/assets.php @@ -133,9 +133,6 @@ $network_count = intval($row['network_count']); //Other Count $other_count = intval($row['other_count']); -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM assets diff --git a/agent/documents.php b/agent/documents.php index 3a4050f4..e93e05f6 100644 --- a/agent/documents.php +++ b/agent/documents.php @@ -23,9 +23,6 @@ if (!empty($q)) { $query_snippet = ""; // empty } -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - // Folder ID $get_folder_id = 0; if (!empty($_GET['folder_id'])) { diff --git a/agent/files.php b/agent/files.php index 2a6de5d9..4387c524 100644 --- a/agent/files.php +++ b/agent/files.php @@ -14,9 +14,6 @@ if (!empty($_GET['folder_id'])) { $folder_id = 0; } -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - // Folder ID $get_folder_id = 0; if (!empty($_GET['folder_id'])) { diff --git a/agent/payments.php b/agent/payments.php index 106f88a1..74cfc60b 100644 --- a/agent/payments.php +++ b/agent/payments.php @@ -38,9 +38,6 @@ if (isset($_GET['account']) & !empty($_GET['account'])) { $account_filter = ''; } -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM payments diff --git a/agent/recurring_expenses.php b/agent/recurring_expenses.php index 5ed37c00..ef867adb 100644 --- a/agent/recurring_expenses.php +++ b/agent/recurring_expenses.php @@ -9,9 +9,6 @@ require_once "includes/inc_all.php"; // Perms enforceUserPermission('module_financial'); -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM recurring_expenses diff --git a/agent/revenues.php b/agent/revenues.php index a5170eea..f823fc9d 100644 --- a/agent/revenues.php +++ b/agent/revenues.php @@ -9,9 +9,6 @@ require_once "includes/inc_all.php"; // Perms enforceUserPermission('module_financial'); -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM revenues diff --git a/agent/transfers.php b/agent/transfers.php index 90d00b0c..c3d38cad 100644 --- a/agent/transfers.php +++ b/agent/transfers.php @@ -28,10 +28,6 @@ if (isset($_GET['account_to']) & !empty($_GET['account_to'])) { $account_to_filter = ''; } - -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS transfer_created_at, expense_date AS transfer_date, expense_amount AS transfer_amount, expense_account_id AS transfer_account_from, revenue_account_id AS transfer_account_to, transfer_expense_id, transfer_revenue_id , transfer_id, transfer_method, transfer_notes FROM transfers, expenses, revenues diff --git a/agent/trips.php b/agent/trips.php index 75b9a30c..770cbffb 100644 --- a/agent/trips.php +++ b/agent/trips.php @@ -15,9 +15,6 @@ if (isset($_GET['client_id'])) { $client_url = ''; } -//Rebuild URL -$url_query_strings_sort = http_build_query($get_copy); - $sql = mysqli_query( $mysqli, "SELECT SQL_CALC_FOUND_ROWS * FROM trips