mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-13 18:31:10 +01:00
Fixes Issue #122 - infinite loop when most recent ticket was opened in
December. Thanks to Chris Vigelius for the bug report.
This commit is contained in:
parent
b535acbb8f
commit
4d5713cd11
@ -20,3 +20,6 @@ Patch thanks to hgeerts.
|
||||
2009-10-13 r143 Issue #113 - Clicking Queue names on the Dashboard was showing
|
||||
all tickets; now only shows open tickets. Thanks to Andreas Kotowicz for the
|
||||
sugestion.
|
||||
|
||||
2009-12-16 r144 Issue #122 - Infinite loop when most recent ticket was
|
||||
opened in December. Thanks to Chris Vigelius for the report.
|
||||
|
@ -765,7 +765,7 @@ def run_report(request, report):
|
||||
if month > 12:
|
||||
year += 1
|
||||
month = 1
|
||||
if month > last_month and year >= last_year:
|
||||
if (year > last_year) or (month > last_month and year >= last_year):
|
||||
working = False
|
||||
periods.append((temp, (year, month)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user