From fdd50175cd04ebd194af22769a0493cca527b03f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Fri, 19 Jan 2007 14:29:42 +0000
Subject: [PATCH] do not use getTitleOrId on the context, because we might be
 viewing something else than an instance of ERP5Type.Base.Base

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12161 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/view_main.xml                 | 2 +-
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
index 9608d449b2..0fca8d6943 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/view_main.xml
@@ -87,7 +87,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\n
                form_action          python: form and form.action not in (\'\', None) and here.portal_membership.checkPermission(\'Modify portal content\', here) and form.action or nothing;\n
                local_parameter_list local_parameter_list | python: {};\n
                dummy                python: local_parameter_list.update({\'object_uid\': object_uid, \'object_path\': object_path, \'form_id\': form_id});\n
-               title                python: \'%s - %s\' % (here.Base_translateString(template.title_or_id()), here.getTitleOrId());\n
+               title                python: \'%s - %s\' % (here.Base_translateString(template.title_or_id()), here.title_or_id());\n
                ">\n
     <tal:block metal:use-macro="here/main_template/macros/master">\n
       <tal:block metal:fill-slot="context_bar">\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 9573848579..98c1572f67 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-326
\ No newline at end of file
+327
\ No newline at end of file
-- 
2.30.9