[change state form] set domid to avoid data conflict with other (eg edition) form stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 05 Nov 2010 18:48:07 +0100
branchstable
changeset 6692 bbc3f7c9f8d9
parent 6691 17208a358bb1
child 6693 65bd93b72f1e
[change state form] set domid to avoid data conflict with other (eg edition) form
web/views/workflow.py
--- a/web/views/workflow.py	Fri Nov 05 18:48:06 2010 +0100
+++ b/web/views/workflow.py	Fri Nov 05 18:48:07 2010 +0100
@@ -80,7 +80,9 @@
 # IWorkflowable views #########################################################
 
 class ChangeStateForm(forms.CompositeEntityForm):
-    __regid__ = 'changestate'
+    # set dom id to ensure there is no conflict with edition form (see
+    # session_key() implementation)
+    __regid__ = domid = 'changestate'
 
     form_renderer_id = 'base' # don't want EntityFormRenderer
     form_buttons = [fwdgs.SubmitButton(),