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 @@
@@ -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"); } 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']);