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

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Jan 30 16:30:41 CET 2007


Author: vincent
Date: Tue Jan 30 16:30:39 2007
New Revision: 12462

URL: http://svn.erp5.org?rev=12462&view=rev
Log:
Fix displaying a view including context_box_render on portal object (eg: worklists).

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.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/context_box_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml?rev=12462&r1=12461&r2=12462&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml Tue Jan 30 16:30:39 2007
@@ -214,7 +214,7 @@
         <span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n
       </button>\n
       <button class="new" type="submit" title="New"\n
-              tal:attributes="name python: hasattr(here.getParentValue(), \'getLastId\') and \'Base_createNewDocument:method\' or \'Folder_create:method\'"\n
+              tal:attributes="name python: (getattr(here, \'getParentValue\', None) is not None and getattr(here.getParentValue(), \'getLastId\', None) is not None) and \'Base_createNewDocument:method\' or \'Folder_create:method\'"\n
               i18n:attributes="title" i18n:domain="ui">\n
         <span class="image"></span>\n
         <span class="description" i18n:translate="" i18n:domain="ui">New</span>\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=12462&r1=12461&r2=12462&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Tue Jan 30 16:30:39 2007
@@ -1,1 +1,1 @@
-328
+329




More information about the Erp5-report mailing list