web/views/editcontroller.py
changeset 3384 f76a38731bc1
parent 2680 66472d85d548
child 3386 ab797c5374b7
--- a/web/views/editcontroller.py	Wed Aug 05 08:40:20 2009 +0200
+++ b/web/views/editcontroller.py	Wed Aug 05 09:05:40 2009 +0200
@@ -68,8 +68,8 @@
                 self.handle_relation(rschema, formparams, x, entity, True)
 
         # XXX this processes *all* pending operations of *all* entities
-        if form.has_key('__delete'):
-            todelete += req.list_form_param('__delete', form, pop=True)
+        if req.form.has_key('__delete'):
+            todelete += req.list_form_param('__delete', req.form, pop=True)
         if todelete:
             self.delete_relations(parse_relations_descr(todelete))
         if form.has_key('__insert'):