web/views/editforms.py
branchtls-sprint
changeset 1750 9df5e65c5f79
parent 1710 8c717cc0b353
child 1759 61d026ced19f
--- 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: