must catch UnmodifiedField exception in has_been_modified
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 10:26:51 +0100
changeset 4354 30f745305997
parent 4353 7db69db4913c
child 4355 b50dd952cb8d
must catch UnmodifiedField exception in has_been_modified
web/formfields.py
--- a/web/formfields.py	Tue Jan 26 10:24:50 2010 +0100
+++ b/web/formfields.py	Tue Jan 26 10:26:51 2010 +0100
@@ -328,6 +328,8 @@
                 new_value = self.process_form_value(form)
             except ProcessFormError:
                 return True
+            except UnmodifiedField:
+                return False
             if form.edited_entity.has_eid() and previous_value == new_value:
                 return False # not modified
             return True