[Erp5-report] r18023 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Dec 5 15:51:38 CET 2007


Author: jerome
Date: Wed Dec  5 15:51:38 2007
New Revision: 18023

URL: http://svn.erp5.org?rev=18023&view=rev
Log:
don't fail if there are no print action defined

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Folder_print.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Folder_print.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Folder_print.xml?rev=18023&r1=18022&r2=18023&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Folder_print.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/Folder_print.xml Wed Dec  5 15:51:38 2007
@@ -73,7 +73,8 @@
      context.Base_filterDuplicateActions(\n
      context.portal_actions.listFilteredActionsFor(context)), \'object_print\')\n
 \n
-return context.ERP5Site_redirect(new_print_action_list[0][\'url\'],\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
                 \'dialog_category\': \'object_print\'}, **kw)\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=18023&r1=18022&r2=18023&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Wed Dec  5 15:51:38 2007
@@ -1,1 +1,1 @@
-454
+455




More information about the Erp5-report mailing list