Commit 6b63dc77 authored by Romain Courteaud's avatar Romain Courteaud

erp5_core: propagate the portal type during jump

It is needed if a module contains multiple object's portal types.
parent 2718c9f4
...@@ -39,6 +39,7 @@ if related: ...@@ -39,6 +39,7 @@ if related:
"that_title": context.getTitleOrId() }),) "that_title": context.getTitleOrId() }),)
return module.Base_redirect( return module.Base_redirect(
'view', keep_items={'%s__uid' % base_category: relation.getUid(), 'view', keep_items={'%s__uid' % base_category: relation.getUid(),
'portal_type': portal_type,
'ignore_hide_rows': 1, 'ignore_hide_rows': 1,
'reset': 1, 'reset': 1,
'portal_status_message': message}) 'portal_status_message': message})
......
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