Commit bdb5085a authored by Julien Muchembled's avatar Julien Muchembled

ExplanationCache: fix update of closure cache

>>> self.closure_cache[business_link] = new_business_process
was done after 'business_link' was overridden by the for loop.
parent 0d3b3181
......@@ -270,6 +270,7 @@ class ExplanationCache:
# Build a new closure business process
module = business_process.getPortalObject().business_process_module # XXX-JPS
self.closure_cache[business_link] = self.closure_cache[path_list] = \
new_business_process = module.newContent(portal_type="Business Process",
temp_object=True) # XXX-JPS is this really OK with union business processes
i = 0
......@@ -281,8 +282,6 @@ class ExplanationCache:
id = 'closure_path_%s' % i
new_business_process._setOb(id, business_link.asContext(id=id))
self.closure_cache[business_link] = new_business_process
self.closure_cache[path_list] = new_business_process
return new_business_process
def getUnionBusinessProcess(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment