web/form.py
branchstable
changeset 4683 c375d50eaad3
parent 4668 9f82f81bf13d
child 4719 aaed3f813ef8
--- 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)