mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-05-21 18:00:45 +02:00
fixing month index error in reports
month has to span from 0 to 11 not 1 to 12
This commit is contained in:
parent
23463c902e
commit
08efeb1fc9
@ -833,7 +833,7 @@ def run_report(request, report):
|
|||||||
month = 1
|
month = 1
|
||||||
if (year > last_year) or (month > last_month and year >= last_year):
|
if (year > last_year) or (month > last_month and year >= last_year):
|
||||||
working = False
|
working = False
|
||||||
periods.append("%s %s" % (months[month], year))
|
periods.append("%s %s" % (months[month - 1], year))
|
||||||
|
|
||||||
if report == 'userpriority':
|
if report == 'userpriority':
|
||||||
title = _('User by Priority')
|
title = _('User by Priority')
|
||||||
|
Loading…
Reference in New Issue
Block a user