From aba1ccfafa43d334d649169d30dd3a422f7ff518 Mon Sep 17 00:00:00 2001 From: Christophe Dumez <christophe@nexedi.com> Date: Fri, 11 Aug 2006 10:18:16 +0000 Subject: [PATCH] - Fixed a bug in search (getPortalType not defined) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9148 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_core/Base_getHelpUrl.xml | 6 +++--- .../erp5_xhtml_style/ERP5XhtmlStyle_getHelpUrl.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml index 0578a8abff..720f6a49c8 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getHelpUrl.xml @@ -71,11 +71,11 @@ <value> <string>if context.REQUEST.has_key(\'workflow_action\'): # We are on a workflow transition\n help = \'%s#%s\' % (getattr(getattr(context, form_id), \'form_action\'),context.REQUEST[\'workflow_action\'])\n elif action is not None:\n - help = \'%s#%s\' % (context.getPortalType(), action)\n + help = \'%s#%s\' % (context.getPortalTypeName(), action)\n elif form_id is not None:\n - help = \'%s_%s\' % (context.getPortalType(), form_id)\n + help = \'%s_%s\' % (context.getPortalTypeName(), form_id)\n else:\n - help = context.getPortalType()\n + help = context.getPortalTypeName()\n return \'%s/%s\' % (context.portal_preferences.getPreferredHtmlStyleDocumentationBaseUrl(), help)\n </string> </value> </item> diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_getHelpUrl.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_getHelpUrl.xml index 464d9f6522..d3fb9bb96d 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_getHelpUrl.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ERP5XhtmlStyle_getHelpUrl.xml @@ -68,7 +68,7 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>help = context.getPortalType()\n + <value> <string>help = context.getPortalTypeName()\n if workflow_action is not None: # First, the workflow transition case.\n help = \'%s_%s\' % (help, workflow_action)\n elif current_action is not None: # Then, we are able to get the action.\n -- 2.30.9