Fix for variable instantiation that was made to late

This commit is contained in:
Bertrand Chenal
2009-06-03 16:39:04 +02:00
parent d30cd6f8c9
commit bcd676f370
+1 -1
View File
@@ -240,9 +240,9 @@ class Work(ModelSQL, ModelView):
while leafs:
parents = set()
for work_id in leafs:
work = id2work[work_id]
if not work.active:
continue
work = id2work[work_id]
if work.parent and work.parent.id in work_effort:
work_effort[work.parent.id] += work_effort[work_id]
parents.add(work.parent.id)