From d7f4ca413755a74baa6fc436ef7ab514f7f37497 Mon Sep 17 00:00:00 2001 From: Benbb96 Date: Thu, 8 Oct 2020 22:34:40 +0200 Subject: [PATCH] Fix the call the user setting for tickets per page --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index 25aea105..1fefad8b 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -99,7 +99,7 @@ def dashboard(request): with options for them to 'Take' ownership of said tickets. """ # user settings num tickets per page - tickets_per_page = request.user.usersettings_helpdesk.settings.get('tickets_per_page') or 25 + tickets_per_page = request.user.usersettings_helpdesk.tickets_per_page or 25 # page vars for the three ticket tables user_tickets_page = request.GET.get(_('ut_page'), 1)