Skip to content

Commit

Permalink
Update in customer tickte can not view if ticket deleted :uvdesk#206
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi12-gupta committed Jun 20, 2023
1 parent 65f059e commit d7594c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Controller/Ticket.php
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ public function ticketView($id, Request $request)
$entityManager = $this->getDoctrine()->getManager();
$user = $this->userService->getSessionUser();
$ticket = $entityManager->getRepository(CoreEntites\Ticket::class)->findOneBy(['id' => $id]);

if ($ticket->getIsTrashed()) {
return $this->redirect($this->generateUrl('helpdesk_customer_ticket_collection'));
}

$isConfirmColl = false;

if ($ticket == null && empty($ticket)) {
Expand Down

0 comments on commit d7594c0

Please sign in to comment.