Commit 8a5c60da authored by Julien Muchembled's avatar Julien Muchembled

_migrateSimulationTree: countMessage expects paths, not relative_url

This fixes previous commit.
parent 5b0465e1
...@@ -369,9 +369,11 @@ class AppliedRule(XMLObject, ExplainableMixin): ...@@ -369,9 +369,11 @@ class AppliedRule(XMLObject, ExplainableMixin):
# XXX: delivery.isSimulated may wrongly return False when a duplicate RAR # XXX: delivery.isSimulated may wrongly return False when a duplicate RAR
# was migrated but has not been reindexed yet. Delay migration of # was migrated but has not been reindexed yet. Delay migration of
# this one. # this one.
rar_list = delivery.getCausalityRelatedList(portal_type='Applied Rule') rar_list = delivery.getCausalityRelatedValueList(
rar_list.remove(self.getRelativeUrl()) portal_type='Applied Rule')
if rar_list and portal.portal_activities.countMessage(path=rar_list, rar_list.remove(self)
if rar_list and portal.portal_activities.countMessage(
path=[x.getPath() for x in rar_list],
method_id=('immediateReindexObject', method_id=('immediateReindexObject',
'recursiveImmediateReindexObject', 'recursiveImmediateReindexObject',
'recursiveImmediateReindexSimulationMovement')): 'recursiveImmediateReindexSimulationMovement')):
......
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