Commit 62092d14 authored by Aurel's avatar Aurel

use getPhysicalPath in order to avoid confusion if an id contains portal_trash in it

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13961 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c558be8
......@@ -105,7 +105,7 @@ class FolderMixIn(ExtensionClass.Base):
myType = pt.getTypeInfo(container)
if myType is not None:
if not myType.allowType( portal_type ):
if not 'portal_trash' in container.getPath():
if not 'portal_trash' in container.getPhysicalPath():
raise ValueError('Disallowed subobject type: %s' % portal_type)
pt.constructContent( type_name=portal_type,
......
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