diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doReport.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doReport.xml index 459df985c87eebdf98654efe7efb69db33e58dcf..9c29272a388e9757603c59697e39bf248bc7e1be 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doReport.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Base_doReport.xml @@ -53,19 +53,24 @@ <value> <string>request = container.REQUEST\n kw.update(request.form)\n \n +portal = context.getPortalObject()\n +\n # Base_updateListboxSelection cannot be found.\n Base_updateListboxSelection = getattr(context, \'Base_updateListboxSelection\', None)\n if Base_updateListboxSelection is not None:\n Base_updateListboxSelection()\n \n +action_context = portal.restrictedTraverse(request.get(\'object_path\', \'?\'), context)\n +\n new_print_action_list = context.Base_fixDialogActions(\n context.Base_filterDuplicateActions(\n - context.portal_actions.listFilteredActionsFor(context)), \'object_report\')\n + portal.portal_actions.listFilteredActionsFor(action_context)), \'object_report\')\n \n if new_print_action_list:\n return context.ERP5Site_redirect(new_print_action_list[0][\'url\'],\n keep_items={\'form_id\': form_id,\n \'cancel_url\': cancel_url,\n + \'object_path\': request.get(\'object_path\', context.getPath()),\n \'dialog_category\': \'object_report\'}, **kw)\n </string> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 9ce16c5f3d9226650198ac912bdf97183a8644ca..ddac0493114f442981539b57c9a73b066fd4ba34 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -1058 \ No newline at end of file +1059 \ No newline at end of file