|
|
@ -775,6 +775,11 @@ def add_ticket(request, customer_id=None, project_id=None):
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
department = support_department
|
|
|
|
department = support_department
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not customer:
|
|
|
|
|
|
|
|
if request.POST.get('customer'):
|
|
|
|
|
|
|
|
customer = get_object_or_404(CustomerProfile, id=request.POST.get('customer'))
|
|
|
|
|
|
|
|
|
|
|
|
ticket = Ticket(
|
|
|
|
ticket = Ticket(
|
|
|
|
customer=customer,
|
|
|
|
customer=customer,
|
|
|
|
title=request.POST.get('title'),
|
|
|
|
title=request.POST.get('title'),
|
|
|
|