From a4497dd901e3ccd7af0855d1b00c0bd2dd29bd1c Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Wed, 5 Jan 2022 14:18:18 +0000 Subject: [PATCH 1/3] Require primary contact be populated when client is created. Otherwise, records such as tickets loop/fail to be created (due to no contact) --- add_client_modal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add_client_modal.php b/add_client_modal.php index 47efb360..b23d64d5 100644 --- a/add_client_modal.php +++ b/add_client_modal.php @@ -144,12 +144,12 @@
- +
- +
From a48e3029f13c93d171150cd05f0ebff0e26b82e9 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Wed, 5 Jan 2022 14:21:06 +0000 Subject: [PATCH 2/3] Ensure canned_date is defined before it is referenced, to prevent errors --- clients.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients.php b/clients.php index 10bc9ef6..f41ff650 100644 --- a/clients.php +++ b/clients.php @@ -46,6 +46,12 @@ if(isset($_GET['order'])){ $order_display = "ASC"; } +if (empty($_GET['canned_date'])) { + //Prevents lots of undefined variable errors. + // $dtf and $dtt will be set by the below else to 0000-00-00 / 9999-00-00 + $_GET['canned_date'] = 'custom'; +} + //Date Filter if($_GET['canned_date'] == "custom" AND !empty($_GET['date_from'])){ $date_from = mysqli_real_escape_string($mysqli,$_GET['date_from']); From 93853b77b4f59026054fa68659d2002c6edecf5f Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Wed, 5 Jan 2022 14:27:20 +0000 Subject: [PATCH 3/3] Add confirmation for client deletion from the client summary banner --- client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.php b/client.php index e2506037..6f3368e3 100644 --- a/client.php +++ b/client.php @@ -246,7 +246,7 @@ $location_phone = formatPhoneNumber($location_phone); Edit - Delete + Delete
@@ -259,6 +259,7 @@ $location_phone = formatPhoneNumber($location_phone); include("client_routes.php"); include("edit_client_modal.php"); include("add_quick_modal.php"); + include("delete_client_modal.php"); }