Pārlūkot izejas kodu

[Administration] Tickets admin : savoir si un ticket a été lu #1194

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
586199317c
2 mainītis faili ar 10 papildinājumiem un 1 dzēšanām
  1. +9
    -0
      backend/views/support/view.php
  2. +1
    -1
      common/logic/Ticket/Ticket/Service/TicketSolver.php

+ 9
- 0
backend/views/support/view.php Parādīt failu

@@ -29,6 +29,15 @@ $this->addBreadcrumb('Voir un ticket');
<td><strong>Statut</strong></td>
<td><?= $ticketManager->getTicketStatusLabelAsHtml($ticket); ?></td>
</tr>
<?php if($userManager->isCurrentAdmin()): ?>
<tr>
<td><strong>Producteur</strong></td>
<td><?= $ticketManager->isTicketUnread($ticket, $ticket->user) ?
'<span class="label label-warning">Non lu</span>' :
'<span class="label label-success">Lu</span>'; ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>

+ 1
- 1
common/logic/Ticket/Ticket/Service/TicketSolver.php Parādīt failu

@@ -71,7 +71,7 @@ class TicketSolver extends AbstractSolver
return false;
}

public function isTicketUnread(Ticket $ticket, User $user): int
public function isTicketUnread(Ticket $ticket, User $user): bool
{
$ticketUser = $this->getTicketUser($ticket, $user);


Notiek ielāde…
Atcelt
Saglabāt