Commit 55738a0e authored by Bartek Górny's avatar Bartek Górny

On upload, create new object in current module (instead of hardcoded document_module)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5eaf7c0c
......@@ -84,7 +84,7 @@ if ctype is not None and ctype!=typ:\n
raise Exception(\'This file should be uploaded into \'+ctype)\n
\n
if hasattr(context,\'data\'): # this is a re-upload, we create a \'copy\'\n
docmod=context.restrictedTraverse(\'document_module\')\n
docmod=context.aq_parent\n
newob=docmod.newContent(portal_type=typ)\n
copylist=context.portal_types[typ].getInstanceBaseCategoryList()\n
# we copy many things, ingestion script may then overwrite some of these\n
......
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