Commit 2b776041 authored by Jérome Perrin's avatar Jérome Perrin

pdm: fix jumping from resource to multiple transformations

When jumping from a product to multiple transformations, there was no status
message and also ignore_hide_rows was not passed, which made this jump non
functional when the corresponding preference was enabled.
parent 1e35477f
......@@ -33,6 +33,15 @@ else:
transformation_uid_list.append(uid)
module = portal.getDefaultModule('Transformation')
message = translateString(
# first, try to get a full translated message with portal types
"Documents related to %s." % context.getPortalType(),
# if not found, fallback to generic translation
default=translateString('Documents related to ${that_portal_type} : ${that_title}.',
mapping={"that_portal_type": context.getTranslatedPortalType(),
"that_title": context.getTitleOrId() }),)
return module.Base_redirect('view',
keep_items=dict(reset=1,
portal_status_message=message,
ignore_hide_rows=1,
uid=transformation_uid_list))
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