Skip to content

Commit

Permalink
Ticket Statuses
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wrongecho committed Mar 3, 2024
1 parent b943164 commit 8130138
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions calendar_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions client_events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 8130138

Please sign in to comment.