Commit 9c54847f authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: fix default image usage

parent 3462f71d
......@@ -6,11 +6,14 @@ image_url = "gadget_slapos_panel.png"
release = portal.portal_catalog.getResultValue(
portal_type="Software Release",
url_string=url_string,
follow_up__uid=context.getFollowUpUid()
)
if release is not None:
software_product = release.getAggregateValue(
checked_permission='Access contents information')
if software_product is not None:
image_url = software_product.getDefaultImageAbsoluteUrl()
product_image_url = software_product.getDefaultImageAbsoluteUrl()
if product_image_url:
image_url = product_image_url
return image_url
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