From e403526321d476eec032644ee3071dd70c9338c1 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 22 Jan 2025 16:36:55 -0500 Subject: [PATCH] Better var naming for filter vars for clients and contacts --- client_contacts.php | 8 +++--- clients.php | 51 +++++++++++++++++-------------------- modals/client_add_modal.php | 4 +-- 3 files changed, 29 insertions(+), 34 deletions(-) diff --git a/client_contacts.php b/client_contacts.php index e9548af6..ee87cc07 100644 --- a/client_contacts.php +++ b/client_contacts.php @@ -25,11 +25,11 @@ if (isset($_GET['tags']) && is_array($_GET['tags']) && !empty($_GET['tags'])) { // Location Filter if (isset($_GET['location']) & !empty($_GET['location'])) { $location_query = 'AND (contact_location_id = ' . intval($_GET['location']) . ')'; - $location = intval($_GET['location']); + $location_filter = intval($_GET['location']); } else { // Default - any $location_query = ''; - $location = ''; + $location_filter = ''; } //Rebuild URL @@ -110,7 +110,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
+
- " autofocus> + " autofocus>
@@ -134,8 +129,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -152,8 +147,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); - + - + diff --git a/modals/client_add_modal.php b/modals/client_add_modal.php index 9e6290c3..4f9b5338 100644 --- a/modals/client_add_modal.php +++ b/modals/client_add_modal.php @@ -2,7 +2,7 @@