mirror of https://github.com/itflow-org/itflow
List all the ticket Callaborators in project details currenly it just gets the users that replied to tickets
This commit is contained in:
parent
6435ffde67
commit
ae5f81d9b5
|
|
@ -91,12 +91,28 @@ if (isset($_GET['project_id'])) {
|
|||
}
|
||||
|
||||
//Get Total Ticket Time
|
||||
$ticket_total_reply_time = mysqli_query($mysqli, "SELECT SEC_TO_TIME(SUM(TIME_TO_SEC(ticket_reply_time_worked))) AS ticket_total_reply_time FROM ticket_replies
|
||||
$sql_ticket_total_reply_time = mysqli_query($mysqli, "SELECT SEC_TO_TIME(SUM(TIME_TO_SEC(ticket_reply_time_worked))) AS ticket_total_reply_time FROM ticket_replies
|
||||
LEFT JOIN tickets ON ticket_id = ticket_reply_ticket_id
|
||||
WHERE ticket_reply_archived_at IS NULL AND ticket_project_id = $project_id");
|
||||
$row = mysqli_fetch_array($ticket_total_reply_time);
|
||||
$row = mysqli_fetch_array($sql_ticket_total_reply_time);
|
||||
$ticket_total_reply_time = nullable_htmlentities($row['ticket_total_reply_time']);
|
||||
?>
|
||||
|
||||
// Get all Assigned ticket Users as a comma-separated string
|
||||
$sql_project_collaborators = mysqli_query($mysqli, "
|
||||
SELECT GROUP_CONCAT(DISTINCT user_name SEPARATOR ', ') AS user_names
|
||||
FROM users
|
||||
LEFT JOIN ticket_replies ON user_id = ticket_reply_by
|
||||
LEFT JOIN tickets ON ticket_id = ticket_reply_ticket_id
|
||||
WHERE ticket_reply_archived_at IS NULL AND ticket_project_id = $project_id
|
||||
");
|
||||
|
||||
// Fetch the result
|
||||
$row = mysqli_fetch_assoc($sql_project_collaborators);
|
||||
|
||||
// The user names in a comma-separated string
|
||||
$ticket_collaborators = nullable_htmlentities($row['user_names']);
|
||||
|
||||
?>
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb d-print-none">
|
||||
|
|
@ -149,6 +165,11 @@ if (isset($_GET['project_id'])) {
|
|||
<div class="progress-bar" style="width: <?php echo $tasks_completed_percent; ?>%;"><?php echo $completed_task_count; ?> / <?php echo $task_count; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if($ticket_collaborators) { ?>
|
||||
<div class=mt-1>
|
||||
<i class="fas fa-fw fa-users mr-2 text-secondary"></i><?php echo $ticket_collaborators; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-3">
|
||||
|
|
|
|||
18
ticket.php
18
ticket.php
|
|
@ -288,12 +288,7 @@ if (isset($_GET['ticket_id'])) {
|
|||
<div class="mt-1">
|
||||
<i class="fa fa-fw fa-history text-secondary mr-2"></i>Updated: <strong><?php echo $ticket_updated_at; ?></strong>
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
<a href="#" data-toggle="modal" data-target="#assignTicketModal<?php echo $ticket_id; ?>">
|
||||
<i class="fas fa-fw fa-user-check mr-2 text-secondary"></i><?php echo $ticket_assigned_to_display; ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Ticket closure info -->
|
||||
<?php
|
||||
if (!empty($ticket_closed_at)) {
|
||||
|
|
@ -304,9 +299,20 @@ if (isset($_GET['ticket_id'])) {
|
|||
<div class="mt-1">
|
||||
<i class="fa fa-fw fa-user text-secondary mr-2"></i>Closed by: <?php echo ucwords($ticket_closed_by_display); ?>
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
<i class="fa fa-fw fa-clock text-secondary mr-2"></i>Closed at: <?php echo $ticket_closed_at; ?>
|
||||
</div>
|
||||
<?php if($ticket_feedback) { ?>
|
||||
<div class="mt-1">
|
||||
<i class="fa fa-fw fa-comment-dots text-secondary mr-2"></i>Feedback: <?php echo $ticket_feedback; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<div class="mt-1">
|
||||
<a href="#" data-toggle="modal" data-target="#assignTicketModal<?php echo $ticket_id; ?>">
|
||||
<i class="fas fa-fw fa-user mr-2 text-secondary"></i><?php echo $ticket_assigned_to_display; ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- END Ticket closure info -->
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue