--- a/web/formfields.py Mon May 31 19:33:43 2010 +0200
+++ b/web/formfields.py Mon Jun 07 12:39:15 2010 +0200
@@ -418,6 +418,12 @@
pass
def has_been_modified(self, form):
+ for field in field.actual_fields(form):
+ if field._has_been_modified():
+ return True # XXX
+ return False # not modified
+
+ def _has_been_modified(self, form):
# fields not corresponding to an entity attribute / relations
# are considered modified
if not self.eidparam or not self.role or not form.edited_entity.has_eid():
@@ -441,7 +447,7 @@
except ProcessFormError:
return True
except UnmodifiedField:
- return False
+ return False # not modified
if previous_value == new_value:
return False # not modified
return True