[FIX] HELPDESK: Confirmation message for bulk operations not showing, group by for company is not showing
This commit is contained in:
@@ -107,5 +107,5 @@ class TicketReGroup:
|
||||
("priority", "Priority"),
|
||||
("tags", "Tags"),
|
||||
("assigned_to", "Assigner"),
|
||||
("employee_id.employee_work_info.company_id", "Company"),
|
||||
("employee_id__employee_work_info__company_id", "Company"),
|
||||
]
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
hx-get="{% url 'faq-search' %}?category=true"
|
||||
hx-trigger="change delay:300ms"
|
||||
onkeyup='$("#suggestion_box").show(); if ($(this).val() == "") {$("#suggestion_box").hide()}'
|
||||
onfocusout = '$("#suggestion_box").hide()'
|
||||
onfocusout = '$("#suggestion_box").fadeOut(500)'
|
||||
hx-target="#faqCategoryList"
|
||||
/>
|
||||
<div class="oh-autocomplete-suggestions" id="suggestion_box"></div>
|
||||
|
||||
@@ -1114,7 +1114,9 @@ def tickets_bulk_archive(request):
|
||||
ticket.is_active = is_active
|
||||
ticket.save()
|
||||
messages.success(request, _("The Ticket updated successfully."))
|
||||
return HttpResponseRedirect(request.META.get("HTTP_REFERER", "/"))
|
||||
previous_url = request.META.get("HTTP_REFERER", "/")
|
||||
script = f'<script>window.location.href = "{previous_url}"</script>'
|
||||
return HttpResponse(script)
|
||||
|
||||
|
||||
@login_required
|
||||
@@ -1162,7 +1164,9 @@ def tickets_bulk_delete(request):
|
||||
)
|
||||
except ProtectedError:
|
||||
messages.error(request, _("You cannot delete this Ticket."))
|
||||
return HttpResponseRedirect(request.META.get("HTTP_REFERER", "/"))
|
||||
previous_url = request.META.get("HTTP_REFERER", "/")
|
||||
script = f'<script>window.location.href = "{previous_url}"</script>'
|
||||
return HttpResponse(script)
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
Reference in New Issue
Block a user