we may have some entity forms with nothing to edit for an entity, no RequestError in that case 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Sep 2009 09:17:20 +0200
branch3.5
changeset 3309 2538daa6651c
parent 3308 88f5f89d8d1b
child 3310 8695a3f5599e
we may have some entity forms with nothing to edit for an entity, no RequestError in that case
web/views/editcontroller.py
--- a/web/views/editcontroller.py	Fri Sep 18 09:16:40 2009 +0200
+++ b/web/views/editcontroller.py	Fri Sep 18 09:17:20 2009 +0200
@@ -51,7 +51,8 @@
         try:
             methodname = form.pop('__method', None)
             for eid in req.edited_eids():
-                formparams = req.extract_entity_params(eid)
+                # __type and eid
+                formparams = req.extract_entity_params(eid, minparams=2)
                 if methodname is not None:
                     entity = req.entity_from_eid(eid)
                     method = getattr(entity, methodname)