forked from extern/django-helpdesk
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
|
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
|
all tickets; now only shows open tickets. Thanks to Andreas Kotowicz for the
|
||||||
sugestion.
|
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:
|
if month > 12:
|
||||||
year += 1
|
year += 1
|
||||||
month = 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
|
working = False
|
||||||
periods.append((temp, (year, month)))
|
periods.append((temp, (year, month)))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user