From c971559cd1ca158533846e9671f5319b0b95079d Mon Sep 17 00:00:00 2001
From: Nicolas Delaby <nicolas@nexedi.com>
Date: Thu, 18 Mar 2010 10:20:27 +0000
Subject: [PATCH] Be consistent with legacy format

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33852 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 41f5192043..910af3178c 100644
--- a/product/ERP5/Document/BusinessTemplate.py
+++ b/product/ERP5/Document/BusinessTemplate.py
@@ -2021,8 +2021,9 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
     key_list = self._objects.keys()
     key_list.sort()
     for key in key_list:
+      id_value = key.replace('%s/' % self.class_property, '')
       allowed_item_list = sorted(self._objects[key])
-      xml_data += '\n <portal_type id="%s">' %(key,)
+      xml_data += '\n <portal_type id="%s">' % (id_value)
       for allowed_item in allowed_item_list:
         xml_data += '\n  <item>%s</item>' %(allowed_item,)
       xml_data += '\n </portal_type>'
-- 
2.30.9