diff --git a/osinaweb/osinacore/add/views.py b/osinaweb/osinacore/add/views.py index 9a70545e..5839a0e2 100644 --- a/osinaweb/osinacore/add/views.py +++ b/osinaweb/osinacore/add/views.py @@ -775,6 +775,11 @@ def add_ticket(request, customer_id=None, project_id=None): else: department = support_department + + if not customer: + if request.POST.get('customer'): + customer = get_object_or_404(CustomerProfile, id=request.POST.get('customer')) + ticket = Ticket( customer=customer, title=request.POST.get('title'),