From 052d418bad598c35d2ee834c2ca2fc4f066f5f80 Mon Sep 17 00:00:00 2001 From: "AFTECH.RO" <38830718+aftechro@users.noreply.github.com> Date: Sat, 13 May 2023 02:30:34 +0100 Subject: [PATCH 1/3] Update ticket.php Re-make of Related tickets (total open and closed) and contact card, showing previous ticket and status of it. Also, made the contact mobile and contact phone clickable (tel:$contact_phone) --- ticket.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/ticket.php b/ticket.php index f2f0dda9..556dc739 100644 --- a/ticket.php +++ b/ticket.php @@ -468,10 +468,27 @@ if (isset($_GET['ticket_id'])) {

Contact

- -
- Related tickets: Open | Closed | Total -
+ + + + + + + + + + + + + + + +
+ + @@ -485,14 +502,48 @@ if (isset($_GET['ticket_id'])) { - +
- +
+ +
+ + + + + + +
+
+ Previous ticket: + +
+ Status: + + + + + +
+
+
From ffe4061429274e84f2eaa72a36dfc2a33a1f9859 Mon Sep 17 00:00:00 2001 From: "AFTECH.RO" <38830718+aftechro@users.noreply.github.com> Date: Sat, 13 May 2023 09:42:48 +0100 Subject: [PATCH 2/3] Update ticket.php Hide Previous ticket if none exists --- ticket.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/ticket.php b/ticket.php index 556dc739..0fd0f96e 100644 --- a/ticket.php +++ b/ticket.php @@ -531,18 +531,21 @@ if (isset($_GET['ticket_id'])) {
-
- Previous ticket: - -
- Status: - - - - - +
+ + Previous ticket: + +
+ + Status: + + + Status: + + +
-
+
From 4183583ef50967f04fadcffaf3df1a7b9c67feef Mon Sep 17 00:00:00 2001 From: "AFTECH.RO" <38830718+aftechro@users.noreply.github.com> Date: Sat, 13 May 2023 23:30:33 +0100 Subject: [PATCH 3/3] Update ticket.php changed the sql for previous ticket to prevent XSS attacks. --- ticket.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/ticket.php b/ticket.php index 0fd0f96e..18ee5ee4 100644 --- a/ticket.php +++ b/ticket.php @@ -517,16 +517,16 @@ if (isset($_GET['ticket_id'])) { @@ -546,6 +546,7 @@ if (isset($_GET['ticket_id'])) { +