fixing month index error in reports

month has to span from 0 to 11 not 1 to 12
This commit is contained in:
Alex Garel 2011-11-08 17:57:26 +01:00
parent 23463c902e
commit 08efeb1fc9

View File

@ -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')