hooks/workflow.py
branchstable
changeset 6757 bc878ec35794
parent 6142 8bc6eac1fac1
child 7294 2af1a4cecda5
--- a/hooks/workflow.py	Mon Jan 03 11:22:32 2011 +0100
+++ b/hooks/workflow.py	Tue Dec 21 21:20:19 2010 +0100
@@ -191,6 +191,8 @@
             msg = session._('mandatory relation')
             raise ValidationError(entity.eid, {qname: msg})
         forentity = session.entity_from_eid(foreid)
+        # see comment in the TrInfo entity definition
+        entity.cw_edited['tr_count']=len(forentity.reverse_wf_info_for)
         iworkflowable = forentity.cw_adapt_to('IWorkflowable')
         # then check it has a workflow set, unless we're in the process of changing
         # entity's workflow