Commit 9312ac1a authored by Jérome Perrin's avatar Jérome Perrin

covert to list to prevent calling remove on a tuple


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5479 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9fcb84cf
......@@ -1327,7 +1327,8 @@ class PortalTypeAllowedContentTypeTemplateItem(BaseTemplateItem):
LOG("portal types not found : ", 100, portal_id)
continue
property_list = self._objects[key]
original_property_list = getattr(portal_type, self.class_property, ())
original_property_list = list(getattr(portal_type,
self.class_property, ()))
for id in property_list:
if id in original_property_list:
original_property_list.remove(id)
......
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