web/views/editcontroller.py
changeset 2819 b864288fd316
parent 2680 66472d85d548
child 3023 7864fee8b4ec
--- a/web/views/editcontroller.py	Thu Aug 13 11:32:34 2009 +0200
+++ b/web/views/editcontroller.py	Thu Aug 13 11:49:56 2009 +0200
@@ -198,7 +198,7 @@
             # if it is a file, transport it using a Binary (StringIO)
             # XXX later __detach is for the new widget system, the former is to
             # be removed once web/widgets.py has been dropped
-            if formparams.has_key('__%s_detach' % attr) or formparams.has_key('%s__detach' % attr):
+            if formparams.has_key('%s__detach' % attr):
                 # drop current file value
                 value = None
             # no need to check value when nor explicit detach nor new file