From bcd676f3701ac991860deb72a526ffa012ace8dd Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 3 Jun 2009 16:39:04 +0200 Subject: [PATCH] Fix for variable instantiation that was made to late --- work.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/work.py b/work.py index 8aaee67cb1..f6d28c67ef 100644 --- a/work.py +++ b/work.py @@ -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)