Skip to content

Commit 72fbebd

Browse files
committed
Client Tickets display Contact Email below Contact name, removed email column reworked the display handler on the main tickets listing page as well
1 parent 7de91d9 commit 72fbebd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tickets.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@
179179
<tr>
180180
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_number&o=<?php echo $disp; ?>">Number</a></th>
181181
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_subject&o=<?php echo $disp; ?>">Subject</a></th>
182+
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=contact_name&o=<?php echo $disp; ?>">Contact</a></th>
182183
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=client_name&o=<?php echo $disp; ?>">Client</a></th>
183184
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_priority&o=<?php echo $disp; ?>">Priority</a></th>
184185
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_status&o=<?php echo $disp; ?>">Status</a>
@@ -248,11 +249,18 @@
248249
$ticket_assigned_to_display = $row['user_name'];
249250
}
250251

252+
if(empty($contact_name)){
253+
$contact_display = "-";
254+
}else{
255+
$contact_display = "$contact_name<br><small class='text-secondary'>$contact_email</small>";
256+
}
257+
251258
?>
252259

253260
<tr>
254261
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><span class="badge badge-pill badge-secondary p-3"><?php echo "$ticket_prefix$ticket_number"; ?></span></a></td>
255262
<td><a href="ticket.php?ticket_id=<?php echo $ticket_id; ?>"><?php echo $ticket_subject; ?></a></td>
263+
<td><?php echo $contact_display; ?></td>
256264
<td><a href="client.php?client_id=<?php echo $client_id; ?>&tab=tickets"><?php echo $client_name; ?></a></td>
257265
<td><?php echo $ticket_priority_display; ?></td>
258266
<td><?php echo $ticket_status_display; ?></td>

0 commit comments

Comments
 (0)