From 15e89c3c4ef04a2d15303122e149d3e4ea36effc Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 1 Apr 2025 17:23:44 -0400 Subject: [PATCH 01/10] Fix Bulk Assign ticket to only show ITflow users and not client users --- modals/ticket_bulk_assign_modal.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modals/ticket_bulk_assign_modal.php b/modals/ticket_bulk_assign_modal.php index fb464ca6..eb6e5948 100644 --- a/modals/ticket_bulk_assign_modal.php +++ b/modals/ticket_bulk_assign_modal.php @@ -18,9 +18,8 @@ + + +
From c273cab36ef72384587ae10b1be6d695f8fba56b Mon Sep 17 00:00:00 2001 From: wrongecho Date: Fri, 4 Apr 2025 14:50:36 +0100 Subject: [PATCH 04/10] Portal - View all ticket bugfix View all tickets should display the ticket_number rather than the database ID --- client/ticket_view_all.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ticket_view_all.php b/client/ticket_view_all.php index 50812f3b..5c33edf2 100644 --- a/client/ticket_view_all.php +++ b/client/ticket_view_all.php @@ -62,7 +62,7 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu $ticket_contact_name = nullable_htmlentities($row['contact_name']); echo ""; - echo " $ticket_prefix$ticket_id"; + echo " $ticket_prefix$ticket_number"; echo " $ticket_subject"; echo "$ticket_contact_name"; echo "$ticket_status"; From a20759f1f284a8e2d5a26dac96e33b2fd8517f50 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Fri, 4 Apr 2025 15:07:47 +0100 Subject: [PATCH 05/10] rm asset_mac - no longer in assets table --- global_search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global_search.php b/global_search.php index 045c6ed5..1838280f 100644 --- a/global_search.php +++ b/global_search.php @@ -702,6 +702,7 @@ if (isset($_GET['query'])) { Date: Fri, 4 Apr 2025 15:08:04 +0100 Subject: [PATCH 06/10] rm asset_mac - no longer in assets table --- global_search.php | 1 - 1 file changed, 1 deletion(-) diff --git a/global_search.php b/global_search.php index 1838280f..23b62330 100644 --- a/global_search.php +++ b/global_search.php @@ -702,7 +702,6 @@ if (isset($_GET['query'])) { Date: Fri, 4 Apr 2025 15:12:32 +0100 Subject: [PATCH 07/10] Global search - assets When global search returns an asset, include a hyperlink to the asset details as part of the asset name --- global_search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/global_search.php b/global_search.php index 23b62330..7e64d5d3 100644 --- a/global_search.php +++ b/global_search.php @@ -745,9 +745,9 @@ if (isset($_GET['query'])) { ?> - + - + From a0ece18876feef67be7fae23a306a3fdd2bafa08 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 7 Apr 2025 11:59:56 -0400 Subject: [PATCH 08/10] Allow to remove additional assets in a ticket --- modals/admin_vendor_template_add_modal.php | 13 ++++++++----- post/user/ticket.php | 4 ++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/modals/admin_vendor_template_add_modal.php b/modals/admin_vendor_template_add_modal.php index 4e5f5dcb..e8a2ba85 100644 --- a/modals/admin_vendor_template_add_modal.php +++ b/modals/admin_vendor_template_add_modal.php @@ -75,20 +75,23 @@
- +
-
+
- + +
-
- +
+
+ +
diff --git a/post/user/ticket.php b/post/user/ticket.php index b833774f..99f16ebd 100644 --- a/post/user/ticket.php +++ b/post/user/ticket.php @@ -203,6 +203,10 @@ if (isset($_POST['edit_ticket'])) { $additional_asset_id = intval($additional_asset); mysqli_query($mysqli, "INSERT INTO ticket_assets SET ticket_id = $ticket_id, asset_id = $additional_asset_id"); } + } else { + // If no additional assets are provided, delete them all + // This handles cases where the assets input might be cleared or not set at all. + mysqli_query($mysqli, "DELETE FROM ticket_assets WHERE ticket_id = $ticket_id"); } // Get contact/ticket details after update for logging / email purposes From 70cb0ac635d0c67a62266105e7bb7e0561427ae6 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Mon, 7 Apr 2025 12:58:55 -0400 Subject: [PATCH 09/10] Add the ability to remove additional assets from the ticket details screen --- CHANGELOG.md | 7 ++++++ modals/ticket_add_watcher_modal.php | 2 +- post/user/ticket.php | 35 +++++++++++++++++++++++++++++ ticket.php | 5 +++++ 4 files changed, 48 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdeded17..23ffaaf9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ # Changelog This file documents all notable changes made to ITFlow. + +## [25.03.4] + +### Fixed + + + ## [25.03.3] ### Fixed diff --git a/modals/ticket_add_watcher_modal.php b/modals/ticket_add_watcher_modal.php index c1c47e53..ab6a1cf3 100644 --- a/modals/ticket_add_watcher_modal.php +++ b/modals/ticket_add_watcher_modal.php @@ -21,7 +21,7 @@