From a7b3177944100b1cdfe3d8c8e26de3e62b41ea70 Mon Sep 17 00:00:00 2001 From: Luca Buoncristiani Date: Mon, 16 Sep 2024 10:26:58 +0200 Subject: [PATCH] DUPLICATE_STATUS Tickets moved to closed & resolved ones --- helpdesk/views/staff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index be166546..fb6104c0 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -142,7 +142,7 @@ def dashboard(request): huser = HelpdeskUser(request.user) active_tickets = Ticket.objects.select_related('queue').exclude( - status__in=[Ticket.CLOSED_STATUS, Ticket.RESOLVED_STATUS], + status__in=[Ticket.CLOSED_STATUS, Ticket.RESOLVED_STATUS, Ticket.DUPLICATE_STATUS], ) # open & reopened tickets, assigned to current user @@ -153,7 +153,7 @@ def dashboard(request): # closed & resolved tickets, assigned to current user tickets_closed_resolved = Ticket.objects.select_related('queue').filter( assigned_to=request.user, - status__in=[Ticket.CLOSED_STATUS, Ticket.RESOLVED_STATUS] + status__in=[Ticket.CLOSED_STATUS, Ticket.RESOLVED_STATUS, Ticket.DUPLICATE_STATUS] ) user_queues = huser.get_queues()