Explorar el Código

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

feature/souke
Guillaume Bourgeois hace 1 año
padre
commit
586199317c
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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);


Cargando…
Cancelar
Guardar