[form] fix bug introduced by 4871:a34b76593ab2 with field using multiple input with different suffix: the suffix should be considered in the cache key
--- a/web/formfields.py Thu Mar 11 19:55:29 2010 +0100
+++ b/web/formfields.py Fri Mar 12 10:43:32 2010 +0100
@@ -201,14 +201,14 @@
# of the 'form' appobject argument: the cache will keep growing as new
# form are created...
try:
- return form.formvalues[(self, 'input_name')]
+ return form.formvalues[(self, 'input_name', suffix)]
except KeyError:
name = self.role_name()
if suffix is not None:
name += suffix
if self.eidparam:
name = eid_param(name, form.edited_entity.eid)
- form.formvalues[(self, 'input_name')] = name
+ form.formvalues[(self, 'input_name', suffix)] = name
return name
def role_name(self):