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):
# XXX: delivery.isSimulated may wrongly return False when a duplicate RAR
# was migrated but has not been reindexed yet. Delay migration of
# this one.
rar_list = delivery.getCausalityRelatedList(portal_type='Applied Rule')
rar_list.remove(self.getRelativeUrl())
if rar_list and portal.portal_activities.countMessage(path=rar_list,
rar_list = delivery.getCausalityRelatedValueList(
portal_type='Applied Rule')
rar_list.remove(self)
if rar_list and portal.portal_activities.countMessage(
path=[x.getPath() for x in rar_list],
method_id=('immediateReindexObject',
'recursiveImmediateReindexObject',
'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