Commit 8bc979fc authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: only check Software Product from the same project

parent 2ff99169
......@@ -6,6 +6,7 @@ portal = context.getPortalObject()
software_release_variation = portal.portal_catalog.getResultValue(
portal_type="Software Product Release Variation",
url_string=software_release,
parent__follow_up__uid=context.getUid()
)
if software_release_variation is not None:
return software_release_variation.getParentValue().Base_redirect(
......
......@@ -7,6 +7,7 @@ software_product = context
software_release_variation = portal.portal_catalog.getResultValue(
portal_type="Software Product Release Variation",
url_string=software_release,
parent__follow_up__uid=software_product.getFollowUpUid()
)
if software_release_variation is not None:
return software_release_variation.Base_redirect(
......
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