[form] only set __form_id for the main form, not for sub-forms. Should fix regression introduced by 4668:9f82f81bf13d
--- a/web/form.py Wed Feb 24 11:05:01 2010 +0100
+++ b/web/form.py Wed Feb 24 11:11:27 2010 +0100
@@ -80,7 +80,8 @@
submitmsg=None, mainform=True, **kwargs):
super(Form, self).__init__(req, rset=rset, row=row, col=col)
self.fields = list(self.__class__._fields_)
- self.add_hidden(u'__form_id', kwargs.pop('formvid', self.__regid__))
+ if mainform:
+ self.add_hidden(u'__form_id', kwargs.pop('formvid', self.__regid__))
for key, val in kwargs.iteritems():
if key in controller.NAV_FORM_PARAMETERS:
self.add_hidden(key, val)