diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index a5c2155b..329f38cf 100644 Binary files a/osinaweb/customercore/__pycache__/views.cpython-310.pyc and b/osinaweb/customercore/__pycache__/views.cpython-310.pyc differ diff --git a/osinaweb/customercore/views.py b/osinaweb/customercore/views.py index ac37baed..9a5bfe0d 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -43,11 +43,11 @@ def customer_add_ticket(request, *args, **kwargs): product = None department = None regarding = 'General/Account/Billing' - if request.POST.get('project'): + if request.POST.get('project') and request.POST.get('regarding') == 'Project': project = get_object_or_404(Project, id=request.POST.get('project')) department = project.project_type.department regarding = 'Project/Product' - elif request.POST.get('product'): + elif request.POST.get('product') and request.POST.get('regarding') == 'Product': product = get_object_or_404(Item, id=request.POST.get('product')) department = product.item_type.department regarding = 'Project/Product' diff --git a/osinaweb/db.sqlite3 b/osinaweb/db.sqlite3 index 18bf813f..646d2de2 100644 Binary files a/osinaweb/db.sqlite3 and b/osinaweb/db.sqlite3 differ