Copy the timesheet lines before rendering the timesheet graph to avoid wrong pie charts

This commit is contained in:
Sharoon Thomas 2012-12-20 17:38:33 +00:00
parent 58e68279cd
commit 943901f4ba
1 changed files with 1 additions and 1 deletions

View File

@ -962,7 +962,7 @@ class Project(ModelSQL, ModelView):
)
timesheet_rows = sorted(
task.timesheet_lines, key=lambda x: x.employee
task.timesheet_lines[:], key=lambda x: x.employee
)
timesheet_summary = groupby(timesheet_rows, key=lambda x: x.employee)