Commit aba1ccfa authored by Christophe Dumez's avatar Christophe Dumez

- 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
parent c3178578
......@@ -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>
......
......@@ -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
......
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