fix HiddenRelationField bug tls-sprint
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 20 Feb 2009 15:57:29 +0100
branchtls-sprint
changeset 898 583f64567256
parent 897 f5b91f11d8b6
child 899 48d465b5171a
fix HiddenRelationField bug
web/form.py
--- a/web/form.py	Fri Feb 20 15:55:59 2009 +0100
+++ b/web/form.py	Fri Feb 20 15:57:29 2009 +0100
@@ -529,7 +529,8 @@
 class HiddenInitialValueField(Field):
     def __init__(self, visible_field, name):
         super(HiddenInitialValueField, self).__init__(name=name,
-                                                      widget=HiddenInput)
+                                                      widget=HiddenInput,
+                                                      eidparam=True)
         self.visible_field = visible_field
     
                  
@@ -678,7 +679,7 @@
             name = 'edits-%s' % field.name
         else:
             name = 'edito-%s' % field.name
-        return HiddenInitialValueField(field, name=name, eidparam=True)
+        return HiddenInitialValueField(field, name=name)
         
     def form_field_value(self, field, values):
         """look for field's value with the following rules: