mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 02:10:49 +01:00
Issue #102 - couldn't delete TicketCC's. Thanks to Lukeman for the patch.
This commit is contained in:
parent
776f125542
commit
d77d962332
@ -44,3 +44,6 @@ Andreas Kotowicz.
|
||||
|
||||
2010-01-26 r153 Fix issue #129 - can not 'unassign' tickets. Thanks to
|
||||
lukeman for the patch.
|
||||
|
||||
2010-01-26 r154 Fix bug in the code from Issue #102 where TicketCC's couldn't
|
||||
be deleted. Thanks again to lukeman.
|
||||
|
@ -982,7 +982,7 @@ ticket_cc_add = staff_member_required(ticket_cc_add)
|
||||
|
||||
def ticket_cc_del(request, ticket_id, cc_id):
|
||||
cc = get_object_or_404(TicketCC, ticket__id=ticket_id, id=cc_id)
|
||||
if request.POST:
|
||||
if request.method == 'POST':
|
||||
cc.delete()
|
||||
return HttpResponseRedirect(reverse('helpdesk_ticket_cc', kwargs={'ticket_id': cc.ticket.id}))
|
||||
return render_to_response('helpdesk/ticket_cc_del.html',
|
||||
|
Loading…
Reference in New Issue
Block a user