[action] set mainform=False to ensure we don't consume previously posted form validation errors stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 18:48:06 +0100
branchstable
changeset 6691 17208a358bb1
parent 6690 7d68948015ba
child 6692 bbc3f7c9f8d9
[action] set mainform=False to ensure we don't consume previously posted form validation errors
web/views/actions.py
--- a/web/views/actions.py	Fri Nov 05 18:48:05 2010 +0100
+++ b/web/views/actions.py	Fri Nov 05 18:48:06 2010 +0100
@@ -47,7 +47,7 @@
         # if user has no update right but it can modify some relation,
         # display action anyway
         form = entity._cw.vreg['forms'].select('edition', entity._cw,
-                                               entity=entity)
+                                               entity=entity, mainform=False)
         for dummy in form.editable_relations():
             return 1
         try: