mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Simplified Client URL Handling in global client header logic
This commit is contained in:
@@ -18,17 +18,17 @@
|
||||
Ticket <?php if ($sort == 'ticket_subject') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php if (!isset($_GET['client_id'])) { ?>
|
||||
<?php if (!$client_url) { ?>
|
||||
<th scope="col">
|
||||
<a class="text-dark" href="?<?php echo $url_query_strings_sort; ?>&sort=client_name&order=<?php echo $disp; ?>">
|
||||
Client <?php if ($sort == 'client_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<?php if (isset($_GET['client_id'])) { ?>
|
||||
<?php if ($client_url) { ?>
|
||||
<th scope="col">
|
||||
<a class="text-dark" href="?<?php echo $url_query_strings_sort; ?>&sort=client_name&order=<?php echo $disp; ?>">
|
||||
Client <?php if ($sort == 'contact_name') { echo $order_icon; } ?>
|
||||
<a class="text-dark" href="?<?php echo $url_query_strings_sort; ?>&sort=contact_name&order=<?php echo $disp; ?>">
|
||||
Contact <?php if ($sort == 'contact_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
@@ -201,7 +201,7 @@
|
||||
</div>
|
||||
|
||||
|
||||
<a href="ticket.php?ticket_id=<?php echo $ticket_id; ?><?php if (isset($_GET['client_id'])) { echo "&client_id=$client_id"; } ?>">
|
||||
<a href="ticket.php?<?php echo $client_url; ?>ticket_id=<?php echo $ticket_id; ?>">
|
||||
<?php
|
||||
if (empty($ticket_closed_at) && $ticket_reply_type == "Client") {
|
||||
echo "<strong>$ticket_subject</strong>";
|
||||
@@ -230,7 +230,7 @@
|
||||
|
||||
<!-- Ticket Contact -->
|
||||
<td>
|
||||
<?php if (!isset($_GET['client_id'])) { ?>
|
||||
<?php if (!$client_url) { ?>
|
||||
<a href="tickets.php?client_id=<?php echo $client_id; ?>"><strong><?php echo $client_name; ?></strong></a>
|
||||
<?php } ?>
|
||||
<div><?php echo $contact_display; ?></div>
|
||||
|
||||
Reference in New Issue
Block a user