From 81301388cd72456ffd1c8fa2a61bb2fe770d1ef8 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Sun, 3 Mar 2024 00:22:20 +0000 Subject: [PATCH] Ticket Statuses Standardize on 5 consistent ticket states:- - New (Red/Danger) - Open (Blue/Primary) - On Hold (Green/Success) - Auto Close (Dark/black) - Closed (Dark/black) Update parts of the app where these have deviated from, as they have not been updated everywhere. Other states may be configurable in future via custom fields. --- calendar_events.php | 4 ++-- client_events.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar_events.php b/calendar_events.php index 723ae3d94..65856d1e8 100644 --- a/calendar_events.php +++ b/calendar_events.php @@ -163,9 +163,9 @@ if ($ticket_status == "New") { $event_color = "red"; - } else if ($ticket_status == "Open") { + } elseif ($ticket_status == "Open") { $event_color = "blue"; - } else if ($ticket_status == "On Hold") { + } elseif ($ticket_status == "On Hold") { $event_color = "grey"; } else { $event_color = "black"; diff --git a/client_events.php b/client_events.php index c2c01309d..41ae75ffb 100644 --- a/client_events.php +++ b/client_events.php @@ -163,9 +163,9 @@ if ($ticket_status == "New") { $event_color = "red"; - } else if ($ticket_status == "Open") { + } elseif ($ticket_status == "Open") { $event_color = "blue"; - } else if ($ticket_status == "On Hold") { + } elseif ($ticket_status == "On Hold") { $event_color = "grey"; } else { $event_color = "black";