From b2375381a1493c3ce6ac311f1888bd872897a681 Mon Sep 17 00:00:00 2001 From: DavidVadnais Date: Tue, 18 Mar 2025 22:32:46 +0000 Subject: [PATCH] Remove filter and uneeded render code --- helpdesk/templates/helpdesk/ticket_list.html | 10 +--------- helpdesk/views/staff.py | 2 -- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/helpdesk/templates/helpdesk/ticket_list.html b/helpdesk/templates/helpdesk/ticket_list.html index ce686692..91e69c12 100644 --- a/helpdesk/templates/helpdesk/ticket_list.html +++ b/helpdesk/templates/helpdesk/ticket_list.html @@ -416,15 +416,7 @@ } }, {data: "submitter"}, - { - data: "last_followup", - render: function (data, type, row, meta) { - if (data && data !== "None") { - return data; - } - return ""; - } - }, + {data: "last_followup"}, {% if helpdesk_settings.HELPDESK_ENABLE_TIME_SPENT_ON_TICKET %} {data: "time_spent", "visible": false}, {% endif %} diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 4cf47c92..f19deae0 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -1025,14 +1025,12 @@ def ticket_list(request): ('assigned_to', 'assigned_to__id__in'), ('status', 'status__in'), ('kbitem', 'kbitem__in'), - ('last_followup', 'last_followup__in'), ] filter_null_params = dict([ ('queue', 'queue__id__isnull'), ('assigned_to', 'assigned_to__id__isnull'), ('status', 'status__isnull'), ('kbitem', 'kbitem__isnull'), - ('last_followup', 'last_followup__isnull'), ]) for param, filter_command in filter_in_params: if request.GET.get(param) is not None: