Commit b4e9a93b authored by Romain Courteaud's avatar Romain Courteaud

Pass form_id as parameter to the print action.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11292 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b144d7e
......@@ -75,7 +75,7 @@ print_action_list = context.portal_actions.listFilteredActionsFor(context)[\'obj
if len(print_action_list) == 0:\n
return\n
if len(print_action_list) == 1:\n
return context.ERP5Site_redirect(print_action_list[0][\'url\'], **kw)\n
return context.ERP5Site_redirect(print_action_list[0][\'url\'], keep_items={\'form_id\': form_id}, **kw)\n
else:\n
return context.ERP5Site_redirect(\'%s/Base_print\' % (context.absolute_url(), ), keep_items={\'dialog_category\': \'object_print\', \'form_id\': form_id, \'cancel_url\': cancel_url}, **kw)\n
</string> </value>
......@@ -92,6 +92,12 @@ else:\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id, cancel_url, **kw</string> </value>
......
299
\ No newline at end of file
300
\ 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