Ticket: Dont display Updated at if null, Move Subject from top ticket bar to header in ticket details, add additional comments about the client_permission_overide

This commit is contained in:
johnnyq 2026-02-14 15:48:40 -05:00
parent 2349ef33d1
commit f9d0a8bf43
4 changed files with 13 additions and 13 deletions

View File

@ -10,6 +10,8 @@ This file documents all notable changes made to ITFlow.
- Asset Transfer: Fix.
- Ticket Listing: Restrict Tickets presented in ticket list view from client restricted agents.
- Ticket Details: Deny access to client restricted agents to view tickets without client_id in uri.
- Tickets: Allow agents with restricted client access to view and edit tickets without a client.
- Ticket Change client: Limit selection for agents with restricted client access.
### New Features & Updates
- Report: Added Client Detail Auditing.

View File

@ -2,9 +2,9 @@
require_once '../../../includes/modal_header.php';
// Ticket client access overide
// Ticket client access overide - This is the only way to show tickets without a client to agents with restricted client access
$access_permission_query_overide = '';
if (!empty($client_access_string)) {
if ($client_access_string) {
$access_permission_query_overide = "AND ticket_client_id IN (0,$client_access_string)";
}

View File

@ -9,9 +9,9 @@ if (isset($_GET['client_id'])) {
$client_url = '';
}
// Ticket client access overide
// Ticket client access overide - This is the only way to show tickets without a client to agents with restricted client access
$access_permission_query_overide = '';
if (!empty($client_access_string)) {
if ($client_access_string) {
$access_permission_query_overide = "AND ticket_client_id IN (0,$client_access_string)";
}
@ -356,11 +356,10 @@ if (isset($_GET['ticket_id'])) {
<i class="fa fa-fw fa-2x fa-life-ring mr-2"></i>
<div class="media-body">
<div class="text-bold">Ticket <?= "$ticket_prefix$ticket_number" ?>
<span class='badge badge-pill text-light ml-1' style="background-color: <?= $ticket_status_color ?>">
<span class='badge badge-pill text-light ml-1 p-2' style="background-color: <?= $ticket_status_color ?>">
<?= $ticket_status_name ?>
</span>
</div>
<span class="text-secondary"><?= $ticket_subject ?></span>
</div>
</div>
</div>
@ -446,10 +445,11 @@ if (isset($_GET['ticket_id'])) {
<div class="card card-body">
<div title="<?php echo $ticket_updated_at; ?>">
<?php if ($ticket_updated_at) { ?>
<div title="<?= $ticket_updated_at ?>">
<i class="fa fa-fw fa-history text-secondary mr-2"></i>Updated: <strong><?= date('M d, Y • g:i A', strtotime($ticket_updated_at)) . "</strong> <span class='text-muted small'>($ticket_updated_at_ago)</span>" ?>
</div>
<?php } ?>
<!-- Ticket assign (disable if closed -->
<?php if (empty($ticket_closed_at)) { ?>
<div class="mt-1">
@ -542,9 +542,7 @@ if (isset($_GET['ticket_id'])) {
<div class="card card-dark mb-3">
<div class="card-header px-3 py-2">
<h5 class="card-title mt-1">
Description / Comments
</h5>
<h5 class="card-title mt-1"><?= $ticket_subject ?></h5>
<?php if (empty($ticket_closed_at)) { ?>
<div class="card-tools">
<button type="button" class="btn btn-tool ajax-modal" data-modal-url="modals/ticket/ticket_edit.php?id=<?= $ticket_id ?>" data-modal-size="lg"><i class="fas fa-edit"></i></button>

View File

@ -88,9 +88,9 @@ if (isset($_GET['project']) & !empty($_GET['project']) && $_GET['project'] > '0'
$ticket_project_filter_id = intval($_GET['project']);
}
// Ticket client access overide
// Ticket client access overide - This is the only way to show tickets without a client to agents with restricted client access
$access_permission_query_overide = '';
if (!empty($client_access_string)) {
if ($client_access_string) {
$access_permission_query_overide = "AND ticket_client_id IN (0,$client_access_string)";
}