diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml index c9e9c90fe2e241c1b4fa0a8409a7d83a9e2c4732..e5de89550b8f338ac7ea1ceb7267eb3cb15f51e6 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_jumpToRelatedDocument.xml @@ -64,11 +64,12 @@ portal_type = map(lambda x:x[0],field.get_value(\'portal_type\'))\n kw = {}\n for k, v in field.get_value(\'parameter_list\') :\n kw[k] = v\n -jump_reference_list = context.getAcquiredValueList(base_category, portal_type=portal_type, filter=kw)\n +accessor_name = \'get%sValueList\' % \'\'.join([part.capitalize() for part in base_category.split(\'_\')])\n +jump_reference_list = getattr(context, accessor_name)(portal_type=portal_type, filter=kw)\n \n if len(jump_reference_list)==1:\n jump_reference = jump_reference_list[0]\n - return request[ \'RESPONSE\' ].redirect( \'%s/view\' % jump_reference.absolute_url() )\n + return jump_reference.Base_redirect(\'view\')\n else:\n selection_uid_list = map(lambda x:x.getUid(),jump_reference_list)\n kw = {\'uid\': selection_uid_list}\n @@ -132,6 +133,10 @@ else:\n <string>k</string> <string>v</string> <string>_write_</string> + <string>append</string> + <string>$append0</string> + <string>part</string> + <string>accessor_name</string> <string>jump_reference_list</string> <string>len</string> <string>_getitem_</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index c6a6947194767e6ce10f754e90b435c2f7c5d77f..e43e02243ea0cbbed79e113fb62333c962cbc597 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -1422 \ No newline at end of file +1424 \ No newline at end of file