Commit bddc9de5 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: use exact match when searching for a title

parent d2038a36
......@@ -40,7 +40,7 @@ for software_type in software_type_list:
# First, search if the release already exists
software_product = portal.portal_catalog.getResultValue(
portal_type="Software Product",
title=title,
title={'query': title, 'key': 'ExactMatch'},
follow_up__uid=context.getUid()
)
if software_product is not None:
......
......@@ -7,7 +7,7 @@ software_product = context
software_type_variation = portal.portal_catalog.getResultValue(
portal_type="Software Product Type Variation",
parent_uid=software_product.getUid(),
title=software_type
title={'query': software_type, 'key': 'ExactMatch'}
)
if software_type_variation is not None:
return software_product.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