From 96c294f3aa6ad8a3b12f38b4d2076fd8140832a7 Mon Sep 17 00:00:00 2001 From: Salim Elliye Date: Thu, 3 Jul 2025 11:15:39 +0300 Subject: [PATCH] new --- osinaweb/osinacore/add/views.py | 5 +++++ 1 file changed, 5 insertions(+) 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'),