Commit a6079a3e authored by Antoine Catton's avatar Antoine Catton

Revert "Avoid accessing to predecessorvaluelist in order to avoid security"

This reverts commit bf1fc284.
parent 896f281c
......@@ -466,7 +466,7 @@ class SlapTool(BaseTool):
# XXX-Antoine: support renaming
software_instance = movement.getAggregateValue(portal_type="Software Instance")
hosting_subscription = movement.getAggregateValue(portal_type="Hosting Subscription")
if software_instance.getRelativeUrl() in hosting_subscription.getPredecessorList() and \
if software_instance in hosting_subscription.getPredecessorValueList() and \
software_instance.getTitle() != hosting_subscription.getTitle():
renamed = True
......
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