Commit 6add6af2 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in manage_addFile that caused weird detinations after the add.

parent c359789a
......@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__='$Revision: 1.81 $'[11:-2]
__version__='$Revision: 1.82 $'[11:-2]
import Globals, string, struct, content_types
from OFS.content_types import guess_content_type
......@@ -121,7 +121,8 @@ def manage_addFile(self,id,file,title='',precondition='', content_type='',
# object can use a database trick to make the upload more efficient.
self._getOb(id).manage_upload(file)
if REQUEST is not None: return self.manage_main(self,REQUEST)
if REQUEST is not None:
REQUEST['RESPONSE'].redirect(self.absolute_url()+'/manage_main')
class File(Persistent,Implicit,PropertyManager,
......
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