Commit 6fdaecee authored by Jérome Perrin's avatar Jérome Perrin

when jumping to the module, use the "default_${base_category}_uid" key, which...

when jumping to the module, use the "default_${base_category}_uid" key, which works for resource, destination, etc.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3ca6ef77
...@@ -127,7 +127,7 @@ else:\n ...@@ -127,7 +127,7 @@ else:\n
if module_id is not None:\n if module_id is not None:\n
if related:\n if related:\n
return context.getPortalObject().getDefaultModule(portal_type[0]).Base_redirect(\n return context.getPortalObject().getDefaultModule(portal_type[0]).Base_redirect(\n
\'view\', keep_items={\'%s_uid\' % base_category: relation.getUid(),\n \'view\', keep_items={\'default_%s_uid\' % base_category: relation.getUid(),\n
\'reset\': 1})\n \'reset\': 1})\n
get_uid_method = getattr(relation, \'get%sUidList\' % getter_base_name)\n get_uid_method = getattr(relation, \'get%sUidList\' % getter_base_name)\n
return context.getPortalObject().getDefaultModule(portal_type[0]).Base_redirect(\n return context.getPortalObject().getDefaultModule(portal_type[0]).Base_redirect(\n
......
940 941
\ No newline at end of file \ No newline at end of file
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