fix name error tls-sprint
authorsylvain.thenault@logilab.fr
Tue, 12 May 2009 17:39:50 +0200
branchtls-sprint
changeset 1750 9df5e65c5f79
parent 1749 b61dc3e5dca5
child 1751 59e9a4f5bfea
fix name error
web/views/editforms.py
--- a/web/views/editforms.py	Tue May 12 17:39:45 2009 +0200
+++ b/web/views/editforms.py	Tue May 12 17:39:50 2009 +0200
@@ -340,7 +340,7 @@
         if not entity.has_eid():
             return True
         # are we regenerating form because of a validation error ?
-        if erroneous_post:
+        if form.form_previous_values:
             cdvalues = self.req.list_form_param(eid_param(rtype, peid),
                                                 form.form_previous_values)
             if unicode(entity.eid) not in cdvalues: