Issue #102 - couldn't delete TicketCC's. Thanks to Lukeman for the patch.

This commit is contained in:
Ross Poulton 2010-01-26 00:01:22 +00:00
parent 776f125542
commit d77d962332
2 changed files with 4 additions and 1 deletions

View File

@ -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.

View File

@ -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',