mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-27 09:08:53 +01:00
more safely get the user setting for tickets per page
This commit is contained in:
parent
03760a921e
commit
e10ffce24a
@ -94,7 +94,7 @@ def dashboard(request):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
# user settings num tickets per page
|
# user settings num tickets per page
|
||||||
tickets_per_page = request.user.usersettings_helpdesk.tickets_per_page
|
tickets_per_page = request.user.usersettings_helpdesk.settings.get('tickets_per_page') or 25
|
||||||
|
|
||||||
# page vars for the three ticket tables
|
# page vars for the three ticket tables
|
||||||
user_tickets_page = request.GET.get('ut_page', 1)
|
user_tickets_page = request.GET.get('ut_page', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user