From c79ba8de0156e9a5ae6674e10316ca1b1f00c5a0 Mon Sep 17 00:00:00 2001 From: Andreas Kotowicz Date: Mon, 28 Nov 2011 14:49:37 +0100 Subject: [PATCH] uncomment previously commented code which takes care of unassiging a ticket. --- helpdesk/views/staff.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 17af2ad2..0361d5b0 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -244,11 +244,10 @@ def update_ticket(request, ticket_id, public=False): } ticket.assigned_to = new_user reassigned = True - # This makes no sense to me. Why should we ever remove the 'assigned to' - # value? - #elif owner == 0 and ticket.assigned_to is not None: - # f.title = _('Unassigned') - # ticket.assigned_to = None + # user changed owner to 'unassign' + elif owner == 0 and ticket.assigned_to is not None: + f.title = _('Unassigned') + ticket.assigned_to = None if new_status != ticket.status: ticket.status = new_status