Selaa lähdekoodia

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

feature/souke
Guillaume Bourgeois 1 vuosi sitten
vanhempi
commit
586199317c
2 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

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


Loading…
Peruuta
Tallenna